diff options
Diffstat (limited to '.gitconfig')
-rw-r--r-- | .gitconfig | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -19,6 +19,8 @@ remotes = remote -v # Credit an author on the latest commit credit = "!f() { git commit --amend --author \"$1 <$2>\" -C HEAD; }; f" + # Interactive rebase with the given number of latest commits + reb = "!r() { git rebase -i HEAD~$1; }; r" # Undo a `git push` undopush = push -f origin HEAD^:master |