![](/style/images/good.png)
![](/style/images/bad.png)
Git: reset author for ALL commits
source link: https://gist.github.com/bgromov/a1905055a8b9cdbeb1d2a87e70920cc8
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
reset author for ALL commits · GitHub
Instantly share code, notes, and snippets.
Thanks you very much)
Thank you bro : )
Thank you!
@bgromov , Newname is our github id or actual name?
Nice! This even keeps old timestamps!
To push to a remote afterwards, a --force
is needed.
git push --force --tags origin 'refs/heads/main'
# or
git push --force
Credits to the comments of https://stackoverflow.com/a/750191/8940679
Thank you so much! This really helps when you change from a personal handle to a business one.
Thank you so much!
biniama commented on Sep 17, 2021 •
Thanks! I get this warning though.
WARNING: git-filter-branch has a glut of gotchas generating mangled history
rewrites. Hit Ctrl-C before proceeding to abort, then use an
alternative filtering tool such as 'git filter-repo'
(https://github.com/newren/git-filter-repo/) instead. See the
filter-branch manual page for more details; to squelch this warning,
set FILTER_BRANCH_SQUELCH_WARNING=1.
Proceeding with filter-branch...
Rewrite 2a51e47ec68d9fb91xxxxxxxx (2/2) (0 seconds passed, remaining 0 predicted)
WARNING: Ref 'refs/heads/main' is unchanged
Can you suggest something?
Thanks, works brillant.
Thanks :)
thanks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK