. Advertisement .
..3..
. Advertisement .
..4..
Here is a code for the programs, and for some strange reason, I got the warning text:
git.exe push -v --progress "origin" iteration1:iteration1
remote: *********************************************************************
To ssh://git@mycogit/cit_pplus.git
! [remote rejected] iteration1 -> iteration1 (pre-receive hook declined)
error: failed to push some refs to 'ssh://git@mycogit/cit_pplus.git'
Even though I copied some suggestion ways, It does not work. What can I do for the ! [remote rejected] master -> master (pre-receive hook declined) issue? Is there a better approach?
The cause: Perhaps there is a problem on the server-side.
Solution: Ask the
git@mycogit/cit_pplus.git
maintainer who is responsible for maintaining the repo Your commits were rejected in thepre-receive
Hook that you have provided. This is a user-configurable script which analyzes all incoming commits to determine if they are worthy of being accepted into the repo. It’s also a smart idea to ask the person to update your hook so that it prints the reasons for rejection. If you are the maintainer, it is likely that there is a problem on the server-side. Please provide more details.It’s possible that you are trying to push a slow-forward move and the hook is blocking it. To rebase your local changes to the latest codebase, run
git pull --rebase
prior to pushing.