.gitconfig: Add retag

This commit is contained in:
Mathias Bynens
2015-01-26 15:24:18 +01:00
parent da6005aba5
commit 7d012c593c
+3
View File
@@ -38,6 +38,9 @@
# Interactive rebase with the given number of latest commits
reb = "!r() { git rebase -i HEAD~$1; }; r"
# Remove the old tag with this name and tag the latest commit with it.
retag = "!r() { git tag -d $1 && git push origin :refs/tags/$1 && git tag $1; }; r"
# Find branches containing commit
fb = "!f() { git branch -a --contains $1; }; f"