A second developer and I are working on a feature branch together. We want to test this feature with changes that have been made in the master branch. Normally I might use git rebase master
, but this won't work for a few reasons.
- Changes have been pushed to remote and shared with other developers.
- There are merge conflicts with master that would make rebasing complicated and risky.
So I want to merge master into my feature branch to get the changes. However when I merge, the specific changes made on master appear as 'changes to be committed'. I imagine that when I make the pull request to put these changes in master that it will make reviewing the changes messy and hard to follow because of the noise of other peoples' changes.
What's the right way to update a feature branch with changes from master when using git merge
without cluttering a pull request with unrelated changes and duplicate commits?
I've hunted around and can't find a good answer to this question since most people recommend rebasing. This seems to be the closest, but its accepted answer has -1 votes, and the others don't actually answer the question.