If you want to move commits from one branch to another, you are looking to cherry-pick, then you can drop the changes on master.
On master do:
git log --pretty=oneline --graph --decorate --abbrev-commit
This will show all the commits on master. Find the one(s) you want, and copy the commit hash (it's the 8 chars value you'll see).
Then checkout your branch and do:
git cherry-pick <commit_hash>
Finally, checkout master and do:
git rebase -i HEAD~<number_of_commits_to_drop>
I'm assuming here your commits on master are the latest. If they are not, you'll need to increase the <number_of_commits_to_drop> so the ones you want show.
A window will open showing something like pick xxxxxxxx commit_message
. Simply replace pick
with d
for the commits you want to drop, save and exit.
Your new branch now has the new commit(s) and the master branch doesn't.