diff options
-rw-r--r-- | .gitconfig | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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" |