美文网首页
因为提交太多导致git库太大,很难clone的解决方法

因为提交太多导致git库太大,很难clone的解决方法

作者: SuperCoderMan | 来源:发表于2020-02-02 21:44 被阅读0次

逐步clone的方法

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

网上的答案

切换远程分支的方法

  • $ git remote set-branches origin 'remote_branch_name'
  • $ git fetch --depth 1 origin remote_branch_name
  • $ git checkout remote_branch_name

相关文章

网友评论

      本文标题:因为提交太多导致git库太大,很难clone的解决方法

      本文链接:https://www.haomeiwen.com/subject/qhhcxhtx.html