Open MJingv opened 4 years ago
http://jartto.wang/2018/12/11/git-rebase/
git rebase -i HEAD~4
git rebase master
首先,git 会把 feature1 分支里面的每个 commit 取消掉; 其次,把上面的操作临时保存成 patch 文件,存在 .git/rebase 目录下; 然后,把 feature1 分支更新到最新的 master 分支; 最后,把上面保存的 patch 文件应用到 feature1 分支上;```
git数据存储 https://segmentfault.com/a/1190000016320008
git-rebase
http://jartto.wang/2018/12/11/git-rebase/
git rebase -i HEAD~4
git rebase master