- git show command will return the commit infomation
- It shows commit full hash
- Author
- Date
- Commit message
- difference to old file to newly changed file
- shows the index of file change
- shows the content changed by executing diff –git <old-file> to <new-file>
git show commands:
To see latest commit info with changes(diff) on old to new files | git show |
To see specific commit info with changes(diff) on old to new files | git show <commit-hash> |
To sell last commit info | git show HEAD |
To see second last commit | git show HEAD~2 |
To see last nth commit | git show HEAD~n |
Git show :
git show <commit-hash> :
git HEAD and git HEAD~2: