0

Possible Duplicate:
How do I merge a specific commit from one branch into another in Git?

I'm newby to git. Got a question: If I want a single commit from one branch onto another branch, what command should I use? Thx in advance.

Community
  • 1
  • 1
heron
  • 3,611
  • 25
  • 80
  • 148

2 Answers2

3

Use cherry pick, as per:

http://www.kernel.org/pub/software/scm/git/docs/git-cherry-pick.html

Stuart Golodetz
  • 20,238
  • 4
  • 51
  • 80
3

Something like: git cherry-pick 575f9b1a75673067830bb224ee09b201923093a6

or

git cherry-pick my-branch (to get the top commit on my-branch).

jmh
  • 8,856
  • 1
  • 18
  • 26