我对要提交的暂存系统进行了一些更改。这是一个共享系统,所以我不想在配置中添加我自己的用户。当我尝试像那样提交时,显然我得到:
*** Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
我不想这样做。
当我尝试这个时
git commit -c author.name="username" author.email="[email protected]"
我得到
fatal: could not lookup commit author.name=username
当我尝试
git commit --author "user <[email protected]>" -m "Some text"
我得到
*** Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
我怎样才能提交我的更改?
尝试这个,
git -c user.name='Chaz' -c user.email='[email protected]' commit -m '...'
这来自这里,但我想你们俩都在努力实现同样的目标。
参考这个
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句