项目场景:
Connection to gitee.com closed by remote host.
Remote "origin" does not support the Git LFS locking API. Consider disabling it with:
$ git config lfs.https://gitee.com/LongSirMax/web-vue.git/info/lfs.locksverify false
问题描述
在将修改文件提交到本地仓库之后,再往远程仓库提交的时候出现错误:
Connection to gitee.com closed by remote host. Remote "origin" does not support the Git LFS locking API. Consider disabling it with: $ git config lfs.https://gitee.com/LongSirMax/web-vue.git/info/lfs.locksverify false
提交不到远程仓库!
原因分析:
远程仓库不支持 Git LFS:有些 Git 服务可能不支持 Git LFS,或者仓库的设置中没有启用这个功能。
解决方案:
将本地的 Git 配置设置为不验证远程仓库的 LFS 锁定状态,这可能会帮助你绕过当前的问题:
(将中间那个仓库地址,修改成你自己的仓库地址!!!)
git config --local lfs.https://gitee.com/LongSirMax/web-vue.git/info/lfs.locksverify false