我在 Visual Studio Team Services 中有一个团队项目,使用 git 作为版本控制系统。
是否可以在 Visual Studio 网站上更改提交的作者姓名和电子邮件地址?
我在 Visual Studio Team Services 中有一个团队项目,使用 git 作为版本控制系统。
是否可以在 Visual Studio 网站上更改提交的作者姓名和电子邮件地址?
Team Explorer > 设置 > 存储库设置
更改您的显示信息。
如果您想通过Git shell更改它:
要为特定存储库设置用户名,请在存储库的根文件夹中输入以下命令:
git config user.name "Billy Everyteen"
# Set a new name
git config user.name
# Verify the setting
Billy Everyteen
编辑:我刚刚注意到您在谈论现有的提交,可以参考更改特定提交的提交作者。
user.name
,那么您可能也想设置 user.email
。 - Gerald Schneider
git push -f
来强制使用本地内容替换远程内容吗? - eftshift0