If I would like to know which commit current master branch is referring to, how could I do that?
Is there a way to check the SHA1 of master in GIT?
If I would like to know which commit current master branch is referring to, how could I do that?
Is there a way to check the SHA1 of master in GIT?
Yes, you can use the rev-parse
command for that:
git rev-parse master
This will return the SHA-1 of the commit being referenced by the master
branch.