I have been using GitHub and Bitbucket for different repositories. For my Github repo, I realized later that I have been using bitbucket email to commit and push on to Github. I am not sure if it is possible to change those already pushed commits to my email? I already changed email back on GitHub to make sure my future commits and pushes go from the email I want. Oh I also connected Bitbucket to my GitHub.
Asked
Active
Viewed 29 times
1 Answers
0
You would need to:
- rewrite your local commits with the right email (see "Git, rewrite previous commit usernames and emails")
See also the official GitHub page "Changing author info". - force push (
git push --force) that rewritten branch to your GitHub repository (which can be problematic for other contributors: make sure to notify them)
The connection part is different, and depends on the protocol your are using for accessing your BitBucket repository (HTTPS or SSH)
VonC
- 1,129,465
- 480
- 4,036
- 4,755