git 提交被拒,錯誤緣由,經過http方式clone到本地。提交的時候服務端不支持http,只支持ssh方式,因此出現下面錯誤。android
$ git push origin ****-eq50
XML error: undefined entity
error: no DAV locking support on http********android/
fatal: git-http-push failed
error: failed to push some refs to 'http******android/'git
錯誤截圖
ssh
解決方法:url
查看push url方法rem
$ git remote show origin
* remote origin
Fetch URL: http******android/
Push URL: http******android/
HEAD branch: masterit
修改遠程地址,從新設置remote地址便可ast
git remote set-url origin git@******android方法