Git Latest Hash
Sometimes, for automation purposes, you would like to get the latest commit in a working copy.
Below is how you do it.
1~$ git rev-parse --short HEAD
Remove the --short HEAD if you need the longer version.
Sometimes, for automation purposes, you would like to get the latest commit in a working copy.
Below is how you do it.
1~$ git rev-parse --short HEAD
Remove the --short HEAD if you need the longer version.