| | 402 | |
| | 403 | === Cherry-picking === |
| | 404 | If a Pull Request contains multiple commits & you only wish to merge one of them in, then this can be done as follows: |
| | 405 | {{{ |
| | 406 | # Create a temporary local branch |
| | 407 | git checkout -b cherry_temp master |
| | 408 | # Pull all their changes into this |
| | 409 | git pull https://github.com/their_username/eden.git their_branch |
| | 410 | # Switch to your master branch |
| | 411 | git checkout master |
| | 412 | # Select the commit you wish to pull-in |
| | 413 | git cherry-pick abc0123 |
| | 414 | # Verify new commit in-place |
| | 415 | git log |
| | 416 | # Cleanup |
| | 417 | git branch -D cherry_temp |
| | 418 | # Push |
| | 419 | git push origin master |
| | 420 | }}} |