Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Git Author Information in Visual Studio

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 ?

like image 585
Mohammed Avatar asked Mar 27 '17 14:03

Mohammed


1 Answers

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.

like image 50
ginomessmer Avatar answered Sep 20 '22 08:09

ginomessmer