From f6d624b580ed0496114230ca2ddba52c733e086b Mon Sep 17 00:00:00 2001 From: Jordan Atwood Date: Fri, 11 Nov 2022 22:40:27 -0800 Subject: [PATCH] Add `reauthor` git alias This differs from `git commit --amend --no-edit --reset-author` as it does not reset the commit time, only the commit author. --- src/.gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/.gitconfig b/src/.gitconfig index d4006a5..da3ad8e 100644 --- a/src/.gitconfig +++ b/src/.gitconfig @@ -24,6 +24,7 @@ pullrp = !git pull --rebase && git push pullrsur = !git pull --rebase && git submodule update --recursive pullrsurp = !git pull --rebase && git submodule update --recursive && git push + reauthor = "!git commit --amend --no-edit --author=\"$(git config user.name) <$(git config user.email)>\"" reword = commit --amend shortstat = diff --shortstat stat = diff --stat