git远程仓库拉取超过1G报错解决办法

第一种 如果浅克隆最近一次提交不会超过1G那就浅克隆

//浅层clone代码 depth 1只会拉取最后一次log, depth(后面数字越大拉取的历史记录越多)
1.git clone --depth 1 远程地址
//拉取完整当前分支
2.git fetch --unshallow

利用远程分支名称拉取

git branch -a
git remote set-branches origin '远程分支名称'
git fetch --depth 1 origin 远程分支名称
git checkout 远程分支名称

第二种 终极解决办法

1.网页上下载git项目zip包
2.解压出来
3.初始化git
git init .
4.加载git地址remote
git remote add 项目地址
5.更新git项目

备注

在加一条,上述方法都不行就可能是网络问题,切一下网试试

相关推荐

  1. git远程仓库超过1G解决办法

    2024-04-21 23:52:05       33 阅读
  2. Git如何远程仓库的其他分支

    2024-04-21 23:52:05       30 阅读
  3. git仓库代码

    2024-04-21 23:52:05       41 阅读
  4. Git三种方法从远程仓库指定分支

    2024-04-21 23:52:05       57 阅读
  5. git远程分支到本地

    2024-04-21 23:52:05       57 阅读
  6. docker 镜像超时解决方法

    2024-04-21 23:52:05       30 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-21 23:52:05       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-21 23:52:05       101 阅读
  3. 在Django里面运行非项目文件

    2024-04-21 23:52:05       82 阅读
  4. Python语言-面向对象

    2024-04-21 23:52:05       91 阅读

热门阅读

  1. Android 一键唤醒应用

    2024-04-21 23:52:05       37 阅读
  2. 搜索文件1.0

    2024-04-21 23:52:05       36 阅读
  3. ubuntu 监控查看硬件温度

    2024-04-21 23:52:05       30 阅读
  4. Android --- 布局与点击事件

    2024-04-21 23:52:05       33 阅读
  5. 适配器模式

    2024-04-21 23:52:05       33 阅读
  6. C++入门

    2024-04-21 23:52:05       34 阅读
  7. 基于单目相机的标靶三维定位——编程实现

    2024-04-21 23:52:05       32 阅读