0

I've read this book section about git branches.

I have create a branch called 'experimental'. I switch to that branch and make 2 commits there. So if it possible for me to merge the later commit (the 2nd of the 2 commits) of the experiment to the master branch?

Thank you.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
michael
  • 106,540
  • 116
  • 246
  • 346

1 Answers1

5

What you are looking for is the cherry-pick command. There are a few other alternative methods that you might consider as well. Check out the article Pick Out Individual Commits on Git Ready.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Jimmy
  • 35,686
  • 13
  • 80
  • 98