本地仓库提交不到远程仓库 Remote “origin“ does not support the Git LFS locking API

项目场景:

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值