Reputation: 4912
I am working on a feature branch, and it's based off the master branch. I require changes from someone else's feature branch, hence I directly take his branch into mine instead of waiting for it to come via the master branch as a PR merge. Now, when I commit my branch, and create the PR, I can see his commits too, as a part of my PR. How do I make sure that only my commits are shown in this case? Is Rebase the answer? If yes then how can I achieve this?
Upvotes: 0
Views: 449
Reputation: 558
Try running git rebase --interactive master
and then you can pick your commits only and have the rest of them ignored or squashed.
Upvotes: 1