Created
February 22, 2018 03:20
-
-
Save miguelmota/4672fd8db2e7c1780eb24209ff4c1dcf to your computer and use it in GitHub Desktop.
Bash get first n characters of git commit hash
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 rev-parse HEAD | cut -c1-7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment