gpt4 book ai didi

git - 在 Visual Studio 中更改 Git 作者信息

转载 作者:太空狗 更新时间:2023-10-29 12:56:38 24 4
gpt4 key购买 nike

我在 Visual Studio Team Services 中有一个团队项目,我使用 git 作为版本控制系统。

是否可以在 Visual Studio 网站上更改提交的作者姓名和电子邮件?

最佳答案

您的作者姓名和电子邮件地址与您的提交绑定(bind),并且大部分取自您的全局 Git 设置,而不是您的 VSTS 帐户。通过 Team Explorer > Settings > Repository Settings 更改显示信息。

Git name and email


如果您想通过 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


编辑:刚刚注意到您在谈论现有的提交,看看 Change commit author at one specific commit .

关于git - 在 Visual Studio 中更改 Git 作者信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43049183/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com