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

后端 未结 4 891
花落未央
花落未央 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条回答
  •  有刺的猬
    2021-01-24 20:53

    When you use the rebase command you will want to push to origin (the remote host ie GitHub or Bitbucket) either way once it is rebased, but the origin in front of means you are referring to the branch as it is remotely rather than what you have locally on your machine.

提交回复
热议问题