Change the author and committer name and e-mail of multiple commits in a bitbucket git repository


I am specialist into having a repo where I am working alone but where I end up commit with various accounts etc, which ends up being quite messy. Usually, to sort things out and rewriting history so that there's only one commit name, mail etc, I resort to this solution :

This time, I tried this for a Bitbucket repo, without success. Is there something special ?

1 answer

1 accepted

This widget could not be displayed.

As you have already changed your commit author within your local repository: why not just use a forced push, to push your local changes to the remote server? (*git push --force*)


  • Forcing pushes is not a good practice (
  • Rewriting the author/committer creates NEW commits - mostly replacing the old commits. When you have had for example tags on your repository before your change of author, the tags are not moved to the new commits, as the tags are pointing to a certain SHA1 and this stays the old commit. You might have to transfer your tags etc. as well (probably manually) when rewriting author in your repository - unless you will loose your tags ...


I don't why I didn't, as it made my day. Thx !

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Canada

AUG Lunch Roundtable - August 13 - Highlights

Thanks to everyone who came out today for the lunch AUG - we had some great food and discussion (and ice cream sandwiches to fend off the heat!) The welcome and fun fact was great as well, what an aw...

30 views 1 3
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you