Git: How to squash all commits on branch

前端 未结 13 1940
情深已故
情深已故 2020-12-04 04:33

I make new branch from master with:

git checkout -b testbranch

I make 20 commits into it.

Now I want to squash those

13条回答
  •  臣服心动
    2020-12-04 05:05

    You can use tool I've created specifically for this task:

    https://github.com/sheerun/git-squash

    Basically you need to call git squash master and you're done

提交回复
热议问题