현재 'external_pub'지점에서 작업 중입니다. 오류 : 분기를 푸는 동안 refs/heads/external_pub을 (를) 업데이트하지 못했습니다.
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'
가 그럼 난에 변화없이 분기를 밀어 시도 :
git push origin external_pub
을하지만이 오류로 귀착되었다 : 그때 밀어 시도를 추가, 하나 개의 파일에 약간의 변경을 & 최선을 다하고 무슨 일이 일어나는 지보십시오 (문제를 격리하기위한 것임). 나는 다음 않았다 : 명령 위
git reset --hard <commit_id> (to reset to last working sha commit)
git status
보여 주었다 :
# On branch external_pub
# Your branch is ahead of 'development' by 5 commits.
#
nothing to commit (working directory clean)
을 다음
git pull origin external_pub
이 보여 주었다 : 당신의 지점이 날짜 개까지 이미 그런
git push origin external_pub
입니다
이번에도 위와 같은 오류가 발생했습니다. 이 문제를 해결하도록 도와 주시겠습니까?
내 .git/hooks 폴더에는 pre-receive.sample이 없습니다. post-receive.sample – TDHM
로컬 리포가 아니라 원격에 있어야합니다. – 1615903