Git 如何挤压提交的选择
如何将2、3和4压缩为一个提交Git 如何挤压提交的选择,git,Git,如何将2、3和4压缩为一个提交 最后承诺 最后提交-1 最后提交-2 最后提交-3 最后提交-4 如matt所述的交互式重基,或者以这种方式,不使用交互式内容: git checkout commit2 git reset --soft commit5 git commit -m "Here's the squash" git cherry-pick commit1 完成了 交互式重基?这是否回答了您的问题?
如matt所述的交互式重基,或者以这种方式,不使用交互式内容:
git checkout commit2
git reset --soft commit5
git commit -m "Here's the squash"
git cherry-pick commit1
完成了 交互式重基?这是否回答了您的问题?