Skip to content

Instantly share code, notes, and snippets.

@bransbury
Created February 16, 2016 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bransbury/c1b2f5d33abe1a8a45f9 to your computer and use it in GitHub Desktop.
Save bransbury/c1b2f5d33abe1a8a45f9 to your computer and use it in GitHub Desktop.
Git - get the previous git tag (useful for automatic reverts)
git describe --abbrev=0 `git describe --abbrev=0`^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment