View on GitHub

notes

A collection of my TIL notes and commonplace book entries.

Move changes from one branch to another

Move a commit in another branch to the current branch (cherry pick)

$ git cherry-pick <commit_id>

Move contents of a commit in another branch to staging index

$ git cherry-pick -n <commit_id>