2012-12-13 284 views
4

我正在嘗試使這項工作,但它不起作用。Git http推送失敗

我通常不會有問題,當我推到服務器,但現在我不斷收到這樣的:

git push origin master 
Password for 'https://[email protected]': 
Fetching remote heads... 
refs/ 
refs/tags/ 
refs/heads/ 
updating 'refs/heads/master' 
from 0000000000000000000000000000000000000000 
to 1c51a98a88f51fa3fe9ab527a6413f117fade432 
sending 1468 objects 
PUT 55113af6418f7w77c9a87b3b470c53a64e62e314 failed, aborting (22/403) 
Updating remote server info 
UNLOCK HTTP error 400 
fatal: git-http-push failed 

當我嘗試做克隆從服務器上的文件,或者當我嘗試使用任何其他命令,它工作正常,它只是'推'命令不起作用。

謝謝。

回答

1

我找到了解決方案,我只需要使用'git gc',並且當我再次推送它時,它就工作了。

+0

我有類似的問題,但git gc不能解決問題 –

0

httpd用戶需要寫訪問所有回購文件。 最好的選擇是將所有文件全部複製到httpd用戶。