Git快速克隆項目-解決工程大或者github鏈接速度較慢致使克隆慢的問題

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

默認master分支:bash

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

ke'long對應分支:code

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

 

參考:get

https://www.jianshu.com/p/1031dd2a6c3ait

相關文章
相關標籤/搜索