Git Rebase seems to have worked but all commits are still showing in the log… what state am I in?

后端 未结 2 716
谎友^
谎友^ 2020-12-30 11:35

I think I squashed the last 40 commits using rebase. I was following this guide to make sure I didn\'t do anything stupid - http://gitready.com/advanced/2009/02/10/squashing

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-30 12:31

    If the rebase "todo list" couldn't be saved, your rebase didn't work.

    The easiest way to squash that many commits would be to do git reset --soft HEAD~40 and then git commit with your new message - assuming you want to squash all of them.

提交回复
热议问题