简体   繁体   中英

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 ?

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名称和电子邮件


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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM