Change Git Author Information in Visual Studio

Mohammed picture Mohammed · Mar 27, 2017 · Viewed 19.4k times · Source

I have a team project in Visual Studio Team Services and I'm using git as a version control system.

Is it possible to change the author name and email of the commits in Visual Studio website ?

Answer

ginomessmer picture ginomessmer · Mar 27, 2017

Your author name and email address is bound to your commits and mostly taken from your global Git settings, not your VSTS account. Change your display info through Team Explorer > Settings > Repository Settings.

Git name and email


In case you want to change it through Git shell:

To set your username for a specific repository, enter the following command in the root folder of your repository:

git config user.name "Billy Everyteen"
# Set a new name
git config user.name
# Verify the setting
Billy Everyteen

Source


EDIT: Just noticed you're talking about existing commits, take a look at Change commit author at one specific commit.