Skip to content

Instantly share code, notes, and snippets.

@emailrhoads
Last active November 5, 2020 15:37
Show Gist options
  • Save emailrhoads/5af230fb9a10f4329013189664a1de08 to your computer and use it in GitHub Desktop.
Save emailrhoads/5af230fb9a10f4329013189664a1de08 to your computer and use it in GitHub Desktop.
[Cherry Pick Rebase] #git
https://stackoverflow.com/questions/2474353/how-to-copy-commits-from-one-branch-to-another
In the event you have some commits that you want to take off of a feature branch (i.e. cherry pick them all onto master), then you can run this rebase workflow.
git rebase --onto branch_to_apply_to branch_with_last_commit_to_ignore branch_you_want_to_apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment