在Netbeans 7.1中添加了Git支持,但是,我没有看到更改提交者信息的方法.目前,它违反了我的系统信息,这不是我想要的.有没有办法改变这个?
Thi*_*ter 70
尝试在本地gitconfig文件中设置它.git/config:
[user]
name = yourname
email = youremail
Run Code Online (Sandbox Code Playgroud)
AVI*_*per 17
您只需编辑组合框中的默认文本,NetBeans将在下次记住它.数据保存在git.properties文件中,例如:)
C:\Users\USERNAME\.netbeans\7.1.2\config\Preferences\org\netbeans\modules\git.properties.
编辑:
根据以下注释,似乎配置文件的位置在NetBeans 8中已更改(我已经很长时间没有使用NetBeans).
根据@tzi,这是另一个位置:
C:\Users\USERNAME\AppData\Roaming\Netbeans\8.0.1\config\Preferences\org\netbean??s\modules\git.properties
小智 7
这帮助了我:https: //help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user
配置git
要检查您的git设置,请运行以下命令:
git config user.email
# you@there.com
Run Code Online (Sandbox Code Playgroud)
如果此电子邮件不正确,您可以更改全局设置:
git config --global user.email "me@here.com"
Run Code Online (Sandbox Code Playgroud)