从原点推送拒绝

时间:2015-06-01 05:47:37

标签: git

我的分支机构拒绝我推进分支机构。

remote: Resolving deltas: 100% (20/20)
To http://foo.bar@git.xxx.com:8080/git/PHP/Synco.git
! [remote rejected] master -> master (fecb4b4761ab187b15a576a1adf44ab0648dab5e by Foo <foo.bar@xxx.com> was not committed by Foo Bar (foo.bar) <Foo.Bar@xxx.com>)
error: failed to push some refs to 'http://foo.bar@git.xxx.com:8080/git/PHP/Synco.git'

我有这个问题。虽然我试图把克隆带回来并尝试再次推送但是有同样的问题。如何解决保持我的开发代码安全的问题。

1 个答案:

答案 0 :(得分:3)

根据错误消息,看起来有一个钩子来检查用户名和电子邮件。他们似乎并不匹配。

Foo <foo.bar@xxx.com> was not committed by Foo Bar (foo.bar) <Foo.Bar@xxx.com>)

尝试更改您的用户名和电子邮件,然后使用此配置进行提交。

git config --global user.email "Foo.Bar@xxx.com"
git config --global user.name "foo.bar"