diff options
-rw-r--r-- | .gitconfig | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -13,6 +13,8 @@ ca = !git add . && git add -u && git commit -a # Switch to a branch, creating it if necessary go = checkout -B + # Credit an author on the latest commit + credit = "!f() { git commit --amend --author \"$1 <$2>\" -C HEAD; }; f" # Undo a `git push` undopush = push -f origin HEAD^:master |