Created
December 31, 2019 10:32
-
-
Save abel0b/7596e68db6233e4d9f82f02f62098ba1 to your computer and use it in GitHub Desktop.
Git version number
This file contains 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
echo $(git rev-list --all --count).$(git rev-parse --short HEAD)$([[ -z "$(git status --porcelain --untracked-files=no)" ]] || echo "+") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment