Last active
September 19, 2017 18:30
-
-
Save vavasilva/67d8bb7620bf9efd41271d0c7f796d83 to your computer and use it in GitHub Desktop.
Latest tag git
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
#!/bin/bash | |
latesttag=$(git describe --tags `git rev-list --tags --max-count=1`) | |
git checkout $latesttag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment