This article was also cross posted to dev.to feel free to drop in to give it a ♥ and leave comment.
This morning I log into my VCS and check activity on my projects to find that someone else has been very active on my projects fo the last few weeks. I quicklyhover over the missing avatar to find that It's Me. What's wrong here, why do I look like two different people throughout the day! upon further investigation I see the issue. while setting up a new terminal environment I mistyped my email address by one character. After much searching and a few failed attempts I was able to fix it by following this article https://help.github.com/articles/changing-author-info/.
Clone the repo, note it must be a
git clone --bare https://github.com/user/repo.git cd repo.git
Curl down the
git-author-rewrite script and edit the following variables
curl https://gist.githubusercontent.com/octocat/0831f3fbd83ac4d46451/raw/c197afe3e9ea2e4218f9fccbc0f36d2b8fd3c1e3/git-author-rewrite.sh > git-author-rewrite.sh
Run the script, and push the updates.
bash git-author-rewrite.sh git push --force --tags origin 'refs/heads/**'
--bare repo from your local machine.
cd .. rm -rf repo.git
I hope this helps someone, or future me who needs to fix their information in git.
👀 see an issue, edit this post on GitHub
If you found value in this post
and want to send a tip.
Check out my otherblogs
I write short articles about developing a successful mindset for the tech industry once or so per week.Subscribe
Someday I hope to announce courses/side projects there as well.
Unsubscribe at any time