git clone下载内容过大
来源:互联网 发布:怎么用网址搜淘宝店铺 编辑:程序博客网 时间:2024/05/16 17:07
第一种解决方法:
Try reducing the postBuffer size in the remote repository config. Follow the steps below
Go to remote git repository directory
Run the following command to reduce the size of postBuffer
git config http.postBuffer 24288000
you can check this value by doing "git config --get http.postBuffer"
Try cloning the repository now (back to where are you cloning)
If failed with error: RPC failed; result=18, HTTP code = 200 try again by incresing the postBuffer ever further in the config. go to step 1.
We need to adjust/override your client's settings.
git config --global http.postBuffer 524288000
git config --list
第二种解决方法:
不止一次听到抱怨说, Git库好大啊,把整个历史都拉下来,慢死了 我情何以堪呢?!! 你可以单单取最后几个,甚至最后一个版本的啊?
#仅获取最新版和一个历史版本,即最后2个版本
git clone http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git --depth 1
注:我就是用这种方法解决,尤其是gitlinux源码
上面的git clone,仅获取了最后2个版本,我是如何知道的呢?
cd linux-2.6
git rev-list master
#只有2个显示哦:
eeb43e7984e7376f09896a201f82ec9fb5936e21
e905483933c0f16c1c0820c8b1834dbcb5e0c06a
#你也许也已经发现,最新版是最先显示的,rev比较多的时候有点不方便,那么:
git rev-list master --max-count=10
#上面的命令,一眼你就明白了
还是不信?好吧,看具体的log信息:
git log --pretty=format:'%h : %s' --topo-order --graph
#打印:
* eeb43e7 : fix issue #107
* e905483 : add log when load iocObject in ComboIocLoader
#如果你做了一些tag,只希望获取某两个tag直接的log
git log --pretty=format:'%h : %s' --topo-order --graph Tag1..Tag2
默认情况下, git执行N次操作后,才会压缩空间,我一般心情好的时间就敲一下:
#这个命令耗时是比较长的哦
git gc --aggressive
#快速指令
git gc
git中文网站:http://gitbook.liuhui998.com/
0 0
- git clone下载内容过大
- GitHub git clone下载配置
- Git下载代码--git clone命令
- 用git clone实现单个目录下载
- 用git clone实现单个目录下载
- 查看 Git Clone文件下载在哪里
- github下载提速,git clone 提速
- python---git clone证书错误,无法下载
- git clone(early EOF index-pack faild)克隆代码文件过大
- git clone
- git clone
- git clone
- git clone
- git clone
- git clone
- git clone
- 方便下载(git clone)、编译、运行的eCos环境
- git clone下载第三方包遇到的问题
- eclipse插件怎么打包,亲测能用
- APP里常用小功能,发短信、发邮件、打电话。
- 程序运行时会出现 xxxx.exe 中的 0x00fa1c29 处有未经处理的异常: 0xC00000FD: Stack overflow
- 微信公众帐号开发教程第8篇-文本消息中使用网页超链接
- EasyUI-DataGrid 可编辑补充说明
- git clone下载内容过大
- 下拉刷新控件包裹下的ListView侧滑出菜单的实现
- linux 发送中文邮件
- 微信公众帐号开发教程第9篇-QQ表情的发送与接收
- ios应用增加给appstore评分和进入app安装页面代码功能
- bin/ld: cannot find -ll 解决方法
- Spring 3.0 注解注入详解
- [工具]ngrok 本地反向代理
- 微信公众帐号开发教程第10篇-解析接口中的消息创建时间CreateTime