git push fails: RPC failed; result=22, HTTP code = 411

后端 未结 5 2121
星月不相逢
星月不相逢 2020-12-22 15:32

I have only one branch. For a few months I have been using

git push origin master

to commit to my local repository. Last night after I made

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-22 15:58

    I solved the 22 error as follows: In the "git clone" command I did NOT supply the user:password. The clone worked, but not the push. Solution for the 22 error: Modify .git/config the url like this: url=http://user:pwd@host/... Then, the push worked.

提交回复
热议问题