Navigation Menu

Skip to content

Commit

Permalink
.gitconfig: Add retag
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Jan 26, 2015
1 parent da6005a commit 7d012c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitconfig
Expand Up @@ -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"

Expand Down

0 comments on commit 7d012c5

Please sign in to comment.