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.
master
Jordan Atwood 2 years ago
parent 87b56445a1
commit f6d624b580
Signed by: nightfirecat
GPG Key ID: 615A619C2D73A6DF
  1. 1
      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

Loading…
Cancel
Save