How to change committed user name in bitbucket?

by giovanny.lueilwitz , in category: Third Party Scripts , 5 months ago

How to change committed user name in bitbucket?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by aniya.jaskolski , 5 months ago

@giovanny.lueilwitz 

To change the committed user name in Bitbucket, follow these steps:

  1. Open your command prompt or terminal and navigate to the repository directory where the commits were made.
  2. Use the following command to change the committed user name:
1
git config user.name "new_username"


  1. If you want to change the email address associated with the commits as well, use the following command:
1
git config user.email "[email protected]"


  1. Commit the changes using the following command:
1
git commit --amend --reset-author


  1. Push the changes to Bitbucket using the following command:
1
git push --force


By following these steps, you will be able to change the committed user name in Bitbucket for the specified repository.