To see the diff for a particular COMMIT
hash, where COMMIT
is the hash of the commit:
git diff COMMIT~ COMMIT
will show you the difference between that COMMIT
‘s ancestor and the COMMIT
. See the man pages for git diff for details about the command and gitrevisions about the ~
notation and its friends.
Alternatively, git show COMMIT
will do something very similar. (The commit’s data, including its diff – but not for merge commits.) See the git show manpage.
(also git diff COMMIT
will show you the difference between that COMMIT
and the head.)
Related Posts:
- How do I call git diff on the same file between 2 different local branches?
- git-diff to ignore ^M
- How do I show the changes which have been staged?
- How do I delete a Git branch locally and remotely?
- How do I delete a Git branch locally and remotely?
- How do I rename a local Git branch?
- How do I undo the most recent local commits in Git?
- How can I switch to another branch in git?
- How can I see the differences between two branches?
- Download single files from GitHub
- How to compare files from two different branches
- What does “Git push non-fast-forward updates were rejected” mean?
- How do I diff the same file between two different commits on the same branch?
- How can I reset or revert a file to a specific revision?
- How to see the changes between two commits without commits in-between?
- Set up git to pull and push all branches
- Invalid VCS root mapping – 3 errors on my project
- Updates were rejected because the remote contains work that you do not have locally
- how to reset develop branch to master
- How to compare a local Git branch with its remote branch
- How can I delete all Git branches which have been merged?
- Pull latest stable release via git [closed]
- Version control with a team of non-developers
- Painless way to track remote Git repo for WordPress updates
- Questions about Git and WordPress [duplicate]
- What does cherry-picking a commit with Git mean?
- Differences between git pull origin master & git pull origin/master
- Undo a Git merge that hasn’t been pushed yet
- fatal: Not a git repository (or any of the parent directories): .git [duplicate]
- Git pushing to remote branch
- How do I undo ‘git add’ before commit?
- How do I discard unstaged changes in Git?
- Need to reset git branch to origin version
- What does “Changes not staged for commit” mean
- How can I merge multiple commits onto another branch as a single squashed commit?
- Why does git say “Pull is not possible because you have unmerged files”?
- Pushing empty commits to remote
- How do I ignore an error on ‘git pull’ about my local changes would be overwritten by merge?
- Stash only one file out of multiple files that have changed with Git?
- What is git fast-forwarding? [duplicate]
- fatal: The current branch master has no upstream branch
- Another git process seems to be running in this repository
- rejected master -> master (non-fast-forward)
- How to cherry-pick multiple commits
- Reset local repository branch to be just like remote repository HEAD
- What is “origin” in Git?
- merge one local branch into another local branch
- Another git process seems to be running in this repository
- How do you stash an untracked file?
- How to git rebase a branch with the onto command?
- Remove a git commit which has not been pushed
- How can I make Git “forget” about a file that was tracked, but is now in .gitignore?
- How to remove files from git staging area?
- How to rename a directory/folder on GitHub website?
- How do I ignore an error on ‘git pull’ about my local changes would be overwritten by merge?
- Create a git patch from the uncommitted changes in the current working directory
- How to undo git reset –soft to get my changes back?
- git push says “everything up-to-date” even though I have local changes
- .gitignore and “The following untracked working tree files would be overwritten by checkout”
- git – Your branch is ahead of ‘origin/master’ by 1 commit
- Why does git say “Pull is not possible because you have unmerged files”?
- Git: Installing Git in PATH with GitHub client for Windows
- How to delete a stash created with git stash create?
- Git: How to update/checkout a single file from remote origin master?
- In a Git repository, how to properly rename a directory?
- ERROR: Error cloning remote repo ‘origin’
- How can I remove a commit on GitHub?
- What is the difference between ‘git remote update’, ‘git fetch’ and ‘git pull’?
- GitLab remote: HTTP Basic: Access denied and fatal Authentication
- Git Extensions: Win32 error 487: Couldn’t reserve space for cygwin’s heap, Win32 error 0
- What does git push origin HEAD mean?
- Delete branches in Bitbucket
- What to gitignore from the .idea folder?git intellij-idea gitignore webstorm
- Is it possible to pull just one file in Git?
- Git lfs – “this exceeds GitHub’s file size limit of 100.00 MB”
- How do you clone a Git repository into a specific folder?
- git checkout master error: the following untracked working tree files would be overwritten by checkout
- Completely cancel a rebase
- How to discard local changes and pull latest from GitHub repository
- Git: What’s the best practice to “git clone” into an existing folder?
- How to recover stashed uncommitted changes
- Git Pull is Not Possible, Unmerged Files
- Git merge reports “Already up-to-date” though there is a difference
- Differences between Commit, Commit and Push, Commit and Sync
- git replace local version with remote version
- Where is git.exe located?
- How to find which git branch I am on when my disk is mounted on other server
- How to modify a specified commit?
- How can I push a specific commit to a remote, and not previous commits?
- Git ignore local file changes
- What’s a good (free) visual merge tool for Git? (on windows)
- Import existing source code to GitHub
- git checkout all the files
- Git Workflow for Large, Live Site?
- WordPress Health Tool reporting version control as a critical issue
- Add latest commit info on login footer using login_footer hook
- Git beginner: Keeping track of on-server changes
- Initial wordpress deploy via git
- How to use wordpress with Git?
- Is it possible to checkout a beta version of WordPress via github?