How to change author of all commits?

2021-04-02

Just type:

git filter-branch -f --env-filter "GIT_AUTHOR_NAME='yourname'; GIT_AUTHOR_EMAIL='[email protected]'; GIT_COMMITTER_NAME='yourname'; GIT_COMMITTER_EMAIL='[email protected]';" HEAD;

check:

git log

then push:

git push --force origin master
git

Rojen Zaman

Anarchist | GnuPG: 0x9089BB25

Spotify Adblock Fedora 35/36/37/rawhide

Nextcloud on Android