SAGARFIVE

1. Introduction

2. Git Basics

3.  Git Terminology

4.  Git Branching

5.  Git - Github

6.  Git Add (Git staging)

7.  Git Commit

8.  Github Advanced

9.  Git Remote

7.3 Git Show (See Commit Information)

  • 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 filesgit show
To see specific commit info with changes(diff) on old to new filesgit show <commit-hash>
To sell last commit infogit show HEAD
To see second last commitgit show HEAD~2
To see last nth commitgit show HEAD~n

Git show :

git show <commit-hash> :

git HEAD and git HEAD~2: