development, git

git clone比较大的项目

By jere on 2021-03-03 0 Comments

  • Turn off compression
  • Increase http.postBuffer
  • Do a partial clone
  • Navigate to the cloned directory and fetch the rest of the clone
  • Pull the rest
git config --global core.compression 0
git config --global https.postBuffer 524288000
git clone  <your_git_http_url_here> --depth 1
git fetch --unshallow 
git pull --all

来源

打赏

Leave a comment

您的电子邮箱地址不会被公开。 必填项已用*标注