git-reauthor-branch: init oneliner
This commit is contained in:
parent
d590784a3a
commit
3cf35ad1d0
1 changed files with 4 additions and 0 deletions
4
oneliners/git-reauthor-branch
Normal file
4
oneliners/git-reauthor-branch
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Change the author and committer of every commit on a branch.
|
||||
# Any mismatching committer dates will be adjusted to match the
|
||||
# commit's author date.
|
||||
EDITOR=true git rebase --committer-date-is-author-date -i --root "$(git rev-parse --abbrev-ref HEAD)" -x 'GIT_COMMITTER_DATE="$(git show -s --format=%ci)" git commit --amend --author "John Doe <john@example.org>" -CHEAD'
|
Loading…
Add table
Add a link
Reference in a new issue