Combine or rebase an arbitrarily large number of commits

前端 未结 3 886
伪装坚强ぢ
伪装坚强ぢ 2020-12-28 11:46

Let\'s say my local git log shows:

739b36d3a314483a2d4a14268612cd955c6af9fb a
...
c42fff47a257b72ab3fabaa0bcc2be9cd50d5c89 x
c4149ba120b30955a92         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-28 11:59

    One option is git rebase -i @{u}. I use this frequently enough that I've aliased it as git freebase (since it works on the commits that you can freely rebase).

    In case you're not familiar, @{u} is a shortcut for @{upstream}, or "the upstream of the current branch".

提交回复
热议问题