[英]PhpStorm default git author
In PhpStorm I am having difficulty setting the default git author in the project settings: 在PhpStorm中,我在项目设置中设置默认的git作者时遇到了困难:
I used the "Action finder" and searched through the settings, but I have not found this option. 我使用了“动作查找器”并搜索了设置,但我还没有找到这个选项。
Does anyone know where I can change this value, so I don't have to change it on every commit? 有谁知道我可以在哪里更改此值,所以我不必在每次提交时更改它?
Thanks to the information given by Andrew I was able to find a solution: 感谢Andrew提供的信息,我找到了解决方案:
Go to your project folder \\ .git \\ config and add the lines below: 转到项目文件夹\\ .git \\ config并添加以下行:
[user]
name = Your Name
email = name@domain.de
I hope this was helpful for other PhpStorm and git users. 我希望这对其他PhpStorm和git用户有帮助。
没有关于PhpStorm的线索,但你应该能够从repo内的命令行执行git config user.name "Your Name"
和git config user.email "Your email"
,或许可以达到你想要的结果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.