Currently, I'm working on 'external_pub' branch. I made few changes in one file, added it, committed & then tried to push:
git push origin external_pub
But this was resulted into an error:
remote: error: hook declined to update refs/heads/external_pub
To ssh://XXX/testing.git
! [remote rejected] external_pub -> external_pub (hook declined)
error: failed to push some refs to 'ssh://XXX/testing.git'
Then I tried to push branch without any change to see what happens(just for isolating issue). I did following:
git reset --hard <commit_id> (to reset to last working sha commit)
git status
Above command showed:
# On branch external_pub
# Your branch is ahead of 'development' by 5 commits.
#
nothing to commit (working directory clean)
Then
git pull origin external_pub
It showed: your branch is already upto date
Then
git push origin external_pub
This time also, it showed the same error as above. Could you please help me to solve this?