git采坑/克隆大项目/使用另一个git账号克隆
这几天接手了公司美国项目,项目由angular+material,这个项目多人开发,前后台东西加起来很多,今天开始的时候克隆好多次失败了,最后克隆成功;
正常git
git clone https://github.com/haiwaifff/aaaaa.git
1,如果用其他人的账号clone
由于一些原因暂时没有权限,所以用了其他同事的git账号
git clone https://dhr123456@github.com/haiwaifff/aaaaa.git
git clone https://加上新git名字+原来的路径
在克隆的时候会提示你输入密码
2,大项目clone慢的问题
git clone https://dhr123456@github.com.cnpmjs.org/haiwaifff/aaaaa.git
在.com后面加上.cnpmjs.org加上你的路径,克隆速度就飞起来了
3,遇到一个坑就是,克隆的空间不够,
git init
git config http.postBuffer 524288000
就可以解决了
4,
git clone -b ggg https://dhr123456@github.com.cnpmjs.org/haiwaifff/aaaaa.git
最终成功的命令 (-b ggg 是要克隆的分支名)
希望你也成功