代码改变世界

git获取远程

2021-11-10 17:39  kk20161206  阅读(87)  评论(0编辑  收藏  举报

git remote add origin https://github.com/EpicGames/UnrealEngine.git

git fetch origin 4.25.4-release

获取

 

一,加大缓存区 git config --global http.postBuffer 524288000 这个大约是500M

二、少clone一些,–depth 1 git clone https://github.com/flutter/flutter.git --depth 1

1、文件太大,解决方式为git添加 compression 配置项

git config --global core.compression -1

 

2、可以增加git的缓存大小

git config --global http.postBuffer 1048576000 (1G) 1 3、配置git的最低速和最低速时间

git config --global http.lowSpeedLimit 0 git config --global http.lowSpeedTime 999999 单位 秒 1 2 global配置对当前用户生效,如果需要对所有用户生效,则用–system