改写历史提交
注意:不要rewrite那些已经被分享给其他开发者的历史提交。

git rebase语法

Rebase(需要解决冲突)
git checkout featureX
git rebase master
git status
Fix conflict files
git add <files>
git rebase --continue
#最后记得执行push提交到远程repo
git push -f
改写历史提交
注意:不要rewrite那些已经被分享给其他开发者的历史提交。
git rebase语法
Rebase(需要解决冲突)
git checkout featureX
git rebase master
git status
Fix conflict files
git add <files>
git rebase --continue
#最后记得执行push提交到远程repo
git push -f
本文标题:Git系列8:Git Rebase
本文链接:https://www.haomeiwen.com/subject/fminoctx.html
网友评论