·项目在多次提交之后会慢慢的变大,怎么办?
查看文件夹下面所有文件或者文件夹的大小:
du -ah
这是出现克隆失败的时候解决方案:
1.查看http和https的postbuffer,如果发觉配置过小修改
git config --global http.postBuffer 524288000
git config --global https.postBuffer 524288000
注意这里的数字是1024的整数倍。
2. 使用SSH通道
3. 尝试远程archive后进行clone。
4.尝试进行浅层次clone。
git clone git://xxoo --depth 1
·git的常用指令
1.添加所有的本地需提交文件
git add .
2.提交 加备注
git commit -m "xx"
3.push到指定分支或主干
git push -u origin master
4.打tag
git tag x.x.x
git push --tags