1. 程式人生 > >Git快速克隆專案-解決工程大或者github連線速度較慢導致克隆慢的問題

Git快速克隆專案-解決工程大或者github連線速度較慢導致克隆慢的問題

使用depth克隆深度引數,僅獲取近1次的commit內容

預設master分支:

git clone --depth 1 http://xxx/xxx.git

ke'long對應分支:

git clone -b ${branch} --depth=1 http://xxx/xxx.git

 

參考:

https://www.jianshu.c