使用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