Shallow update not allowed (git > 1.9)

后端 未结 4 1281
忘掉有多难
忘掉有多难 2021-01-13 15:15

There are a lot of answers stating that git 1.9 removes limitations of shallow clones. Nevertheless, I\'m using 2.6.1 and still having the following basic issue:

Fir

4条回答
  •  甜味超标
    2021-01-13 15:55

    Use git merge --squash.

    If your remote is shallow and you want to merge from it, compress that merge into a single commit without the need to copy a history of commits (which shallow refs hide).

提交回复
热议问题