2012-01-25 35 views
2

我在Win XP上使用Git 1.7.5.1。我想標記我正在處理的代碼的當前版本,並將該標記推送到遠程存儲庫。我能夠標記本地副本,但是當我嘗試推送時,出現一些錯誤。這是我得到的...git:錯誤:未能推動一些裁判回購

[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

您所看到的輸出現在是git的問題,但你正在推動該遠程倉庫由於前期接收掛鉤。它看起來更像是在勾了一些bug,通過這條線從鉤所示:

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

交談的管理員遠程回購/服務器,看看正在發生的事情掛鉤。

相關問題