git clone 大文件

2020-04-21  本文已影响0人  ask_ME

1

git config --global http.postBuffer 524288000

2

git clone git://git.code.sf.net/p/largefile

3 LFS

brew install git-lfs
git git-lfs install
git lfs clone remote

4 depth

$ git clone --depth 1 https://github.com/dogescript/xxxxxxx.git
$ git remote set-branches origin 'remote_branch_name'
$ git fetch --depth 1 origin remote_branch_name
$ git checkout remote_branch_name

使用Git clone代码失败的解决方法

Git_Clone大项目超过1G失败解决方案

Git LFS的使用

上一篇下一篇

猜你喜欢

热点阅读