2012-01-25 2 views
2

Win XP에서 Git 1.7.5.1을 사용하고 있습니다. 현재 작업하고있는 코드의 현재 버전에 태그를 추가하고 해당 태그를 원격 저장소에 푸시합니다. 로컬 복사본에 태그를 지정할 수 있지만 시도 할 때 약간의 오류가 발생합니다. 다음은 내가 얻은 것입니다 ...git : error : repo에 대한 일부 refs를 푸시하지 못했습니다.

[email protected] ~/workspace/iteration1 
$ git tag qa_release 

[email protected] ~/workspace/iteration1 
$ git push origin qa_release 
Total 0 (delta 0), reused 0 (delta 0) 
remote: + refs/tags/qa_release username DENIED by refs/tags/ 
remote: error: hook declined to update refs/tags/qa_release 
To ssh://[email protected]_repo/cit_pplus.git 
! [remote rejected] qa_release -> qa_release (hook declined) 
error: failed to push some refs to 'ssh://[email protected]_repo/cit_pplus.git' 

어떤 아이디어가 잘못 되었나요? 이 문제를 어떻게 해결할 수 있습니까?

덕분에, - 데이브

답변

0

git push의 출력은 말한다 :

당신이 밀고 저장소에 후크를 가지고 있으며, 그 후크 커밋을 거부한다는 것을 의미
remote: error: hook declined to update refs/tags/qa_release 

. 푸시 태그가 허용되지 않았거나 태그를 푸시 할 수있는 권한이없는 것일 수 있습니다.

태그를 원격 저장소에 푸시하는 적절한 방법은 git push --tags을 사용하는 것입니다.

0

보고있는 출력은 이제는 문제가되지만,보고있는 원격 저장소의 수신 전 후크로 인해 발생합니다. 원격 REPO/서버의 관리자에게

remote: + refs/tags/qa_release username DENIED by refs/tags/ 

토크를 후크에 무슨 일이 일어나고 있는지 참조 : 그것은 후크에서이 선으로 표시된 바와 같이, 더 후크에 약간의 버그처럼 보인다.

관련 문제