I am working on a new feature in a new branch, and meanwhile the master has changed.
I would like to update my branch to reflect the changes to master, with the following constraints:
- I've already pushed the feature branch, so I don't want to use rebase in case that causes problems for anyone else who may be looking at it.
- I don't want to add any of my feature changes into master yet, only to my local branch.
There are lots of answers suggesting that in this situation one should use rebase, but I'm nervous about doing this in case it causes problems for anyone who's already pulled the branch.
Can I just do this?
git checkout mybranch git merge origin/master git push origin mybranch