0

Imagine a commit Tree as such:

 ----master--------commit_1--------commit_3--------commit_5----------> \ 'new branch' \ ----------commit_2---------commit_4--> 

I want to be able to take 'commit 2', and commit it to master, WITHOUT merging the new branch, or reverting all other commits on the new branch.

My first thought was to stash 'commit_2', switch to master, then git pop, but I don't know if that will work.

2
  • 3
    you can try cherry picking Commented Oct 9, 2017 at 15:19
  • Never heard of that before, and it was exactly what i needed Commented Oct 9, 2017 at 15:22

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.