当前位置:   article > 正文

git上传大文件问题解决_warning: authentication error: authentication requ

warning: authentication error: authentication required: lfs only supported r

在使用git上传大文件的时候会有这个提示:

下面是具体解决步骤:

1、根据提示,我们先安装git-lfs

2、执行git lfs install

3、找到项目文件下大文件 find ./ -size +100M

4、执行git lfs track "{上面搜索到的大文件路径}"

5、执行git add .gitattributes

-- 到此,如果是用的第三方软件管理代码,可以像正常提交就可以了

6、git add {上面搜索到的大文件路径}

7、git commit -m "Add large file"

8、git push origin main

可能会遇到的问题:

1、如果是提交到码云,在同步代码到码云的时候,可能会遇到以下问题:

1、WARNING: Authentication error: Authentication required: LFS only supported repository in paid enterprise.
2、batch response: LFS only supported repository in paid enterprise. 

第一个错误可以执行下面操作:

git config lfs.https://gitee.com/{your_gitee}/{your_repo}.git/info/lfs.locksverify false

第二个错误是因为付费才可以使用,可以执行下面操作:

rm .git/hooks/pre-push

到此,就可以同步代码到码云了 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/天景科技苑/article/detail/806624
推荐阅读
相关标签
  

闽ICP备14008679号