Sankalp
Sankalp

Reputation: 1350

GIt Push reject from origin

My branch head is rejecting my pushes to the branch.

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

I have this issue. Though I tried to take clone back and tried push again but have same issue. How can I resolve keeping my dev code safe.

Upvotes: 1

Views: 582

Answers (1)

crea1
crea1

Reputation: 12607

According to the error message it looks like there is a hook to check user name and e-mail. And they don't match it seems.

Foo <[email protected]> was not committed by Foo Bar (foo.bar) <[email protected]>)

Try changing your user name and email and do the commit with this configuration.

git config --global user.email "[email protected]"
git config --global user.name "foo.bar"

Upvotes: 3

Related Questions