Last active
July 9, 2021 09:28
-
-
Save peterkeller/3078708ba73a6f1bc33be7778374e787 to your computer and use it in GitHub Desktop.
GIT Tagging
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
# list tags | |
git tag | |
# search tag | |
git tag -l "1.0.*" | |
# add lightweight tag | |
git tag "1.0.0" | |
# delete local tag '1.0.0' | |
git tag -d 1.0.0 | |
# delete remote tag '1.0.0' | |
git push --delete origin 1.0.0 | |
# checkout tag as detached HEAD | |
git checkout 1.0.0 | |
# checkout tag as a branch | |
git checkout -b version1_0_0 1.0.0 | |
# what are the most frequently changed files in the last 6 months? | |
git log --since 6.months.ago --numstat | awk '/^[0-9-]+/{ print $NF}' | sort | uniq -c | sort -nr | head |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment