Created
August 3, 2012 18:45
-
-
Save renanivo/3250346 to your computer and use it in GitHub Desktop.
get the hash of the last commit of a <file>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --format="%h" -n 1 <file> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment