Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in DevOps and Agile by (29.3k points)

When I try and push a change I've committed, I get the following error.

git.exe push -v --progress  "origin" iteration1:iteration1

remote:***********************************************

To ssh://git@my/cit_us.git

! [remote rejected] iteration1 -> iteration1 (pre-receive hook declined)

error: failed to push some refs to 'ssh://git@my/cit_us.git'

What's going on?

1 Answer

+1 vote
by (50.2k points)

If you are maintaining the repo then the problem is with setup on the server-side.

If the repo is maintained by some other person, ask that person to update the hook so that you will get the reasons for rejection.

More details regarding hook error refer: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks#Server-Side-Hooks

Browse Categories

...