Search code examples
gitgithubgit-svn

git know what commit number my branch is on


In Git how can I know what commit number is my branch on?

Git status just shows the difference between the files

  git status 

I want to know the commit number my branch is on


Solution

  • I would use git log -1 though you could use git rev-parse HEAD