Git: Shallow copies from a specific commit

后端 未结 2 759
长情又很酷
长情又很酷 2021-01-23 01:50

git clone --depth N ... creates a shallow clone with history limited to the last N revisions and I can use git clone -b tag ... to fetch the commits re

2条回答
  •  再見小時候
    2021-01-23 02:33

    If running at least Git 2.11 on both client and server side, there's a work-around if you know the date of the tagged commit and which branch it is on:

    git clone --branch  --shallow-since= 
    

提交回复
热议问题