我正在努力使它起作用,但它不起作用。
当我推送到服务器时,我通常不会遇到问题,但现在我不断收到:
git push origin master
Password for 'https://JZ0258213@111.23.15.321':
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
当我尝试从服务器克隆文件或尝试使用任何其他命令时,它工作正常,只是“推送”命令不起作用。
谢谢。
最佳答案
我找到了解决方案,我只需要使用“git gc”,当我再次推送时它就起作用了。
关于Git http 推送失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13868155/