我正在使用 Eclipse 的 Git 插件。当我开始键入这些字段时,将显示几个作者和提交者。
如何更改此列表,或删除某些作者或提交者?
此外,我想设置我的默认作者和提交者,将在默认情况下显示。
Each developer should perform:
git config --global user.name "<name of user>" git config --global user.email "<email of user>"
If you want to change the author of an existing commit, look here
EGit should ask you the first time you commit something. But you can always change it later on, see here: http://wiki.eclipse.org/EGit/User_Guide#Identifying_yourself
Click Add Entry and enter the key value pairs:
Value: YourUsernameHere
And
In Eclipse v4.4 (Luna) it will work like the below way.
You can run the "git config" command with the --global flag; this will make sure all of your future commits use the given information:
git config
--global
$ git config --global user.name "John Doe" $ git config --global user.email "john@doe.org"
If you want to use special settings only when working in a certain repository, you can simply omit the --global flag. This makes the configuration valid only in that repository:
$ git config user.name "John Doe" $ git config user.email "john@doe.org"
Git Cheatsheet: git for dummies