If you ever wonder how to change author name and email address in SourceTree, then you come to the right place. On the other hand, if you not yet connect to GitLab via SourceTree, then you can refer to this detailed guide.
What Will We Learn
- What global name and email address are
- Change name and email address for author and committer in global and repository specific
What is global name and email address?
In SourceTree, you can change author name and email address in global level or repository specific. You can think global name and email address as a default name and email address. Whenever you did not set specific name and email address for the repository when committing code, the default name and email address will be used.
Furthermore, when you changing the author name, the author name will also be used as committer name.
Change global name and email address
Let start with changing global name and email address of author and committer. To change the global name and email address, click on Tools and then click on Options.
Under General tab, you can change the name and email address of author and committer for the git. When you done, click OK.
Before committing your code, check the information here. Make sure it is updated name and email address.
Finally you are ready to commit, you should be able to see your updated name and email address.
If your name and email address still not updated, it is possible that the repository configure not to use the global user information. If this is the case, go to Settings, then tick on Use global user settings.
After that, try to commit your code again. It should work for you this time.
Change name and email address for specific repository
To change name and email address for a specific repository, go to Settings.
Uncheck Use global user settings. Then change your Full Name and Email Address, click OK when it is done.
Now, you can try to commit your code. The name and email address of author and committer should be updated.
I hope this guide can help you to change the name and email address of author and committer. If you face any other issues, please leave your comment below.