Difference between `git rebase -i master` vs `git rebase -i origin/master`

后端 未结 4 935
花落未央
花落未央 2021-01-24 20:20

Combining multiple commits before pushing in Git

Based on my understanding, if I use git rebase -i master, then later I still need to git push origin

4条回答
  •  Happy的楠姐
    2021-01-24 20:49

    Means that if you have a V2 and a V3 (Version 2 and Version 3 respectively), you can modify the V2 and with rebase it will put the changes in a new version (V4) but merging with V3 (it doesn't matter that is a newer version of it) here is the link where you can see it more explained.

    https://git-scm.com/docs/git-rebase

提交回复
热议问题