Created
February 7, 2020 17:40
-
-
Save phryneas/fbbfb8a2281baf3b0d383da26a5095de to your computer and use it in GitHub Desktop.
Retag RTK Tutorials
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
#!/usr/bin/env bash | |
#remove all git tags | |
git tag | xargs git tag -d | |
#re-apply all git tags with commit name => tag name | |
git log --pretty=%s---%H | sed -re 's/[^a-zA-Z0-9-]/_/g;s/---/ /' | xargs -n2 git tag | |
git tag --format="%(objectname) => %(refname)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changing commit
9cdbe41d4c4a1ea6799d9542b1aa809670002094
:git rebase -i 9cdbe41d4c4a1ea6799d9542b1aa809670002094^
(rebase to commit BEFORE the actual commit, note the^
)e
to edit the commit