在一个项目上工作,我正在混合 Netbeans 7.3 集成 git 客户端(实际上是 jgit)和命令行 git 客户端。
使用 Netbeans 提交时,IDE 提供两个字段:Author
和Committer
.
但是当通过命令行处理同一个项目时,我得到:
$git commit
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'agostinox@local-pc.(none)')
一致地,git config --list
返回一组不包含 user.email 或 user.name 的键。
添加reuqired的信息很容易,但问题是:由于eamil地址的自动检测失败,即之前使用的电子邮件地址,Netbeans(jgit)执行成功提交?