PhpStorm如何在git push上创建名称更改

时间:2015-11-18 09:25:57

标签: phpstorm

在命令期间,使用PhpStorm的git push使用旧用户名(Alex)。如何将其更改为另一个? 谢谢enter image description here

1 个答案:

答案 0 :(得分:1)

如果您想永久更改它,只需更改您的Git配置即可。打开终端窗口(从PhpStorm或OS中)并运行:

git config --global user.name "John Doe"
git config --global user.email johndoe@example.com

当然,请使用适当的用户名/电子邮件地址。如果您只想用另一个作者名称推送单个提交,可以在右上角的提交对话框中设置它,在使用时使用username <email>语法。