Last active
December 18, 2020 22:10
-
-
Save cliffparnitzky/4159798 to your computer and use it in GitHub Desktop.
Simple way to create a tag via git shell and push it to repo
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
# creat a tag (more infos at: http://git-scm.com/book/de/ch2-12.html) | |
git tag -a 1.0.0 -m "Version 1.0.0" | |
git push origin 1.0.0 | |
git tag -a 1.0.0.alpha1 -m "Version 1.0.0 alpha1" | |
git push origin 1.0.0.alpha1 | |
# delete a tag | |
git tag -d 1.0.0 | |
git push origin :refs/tags/1.0.0 |
Clean .git folder
git reflog expire --expire=now --all
git repack -ad
git prune
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Amending the commit message