git:git_cherry-pick
Differences
This shows you the differences between two versions of the page.
git:git_cherry-pick [2016/11/21 11:37] – created peter | git:git_cherry-pick [2019/11/29 15:00] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== GIT - git cherry-pick ====== | ||
- | |||
- | Specify which commits you want to apply to your current HEAD. | ||
- | |||
- | You have to know which commit hashes you want. For example, if you have 3 commits above the master branch, you could apply just the last commit by running | ||
- | |||
- | <code git> | ||
- | git cherry-pick [hash of 3rd commit] | ||
- | </ | ||
- | |||
- | This way, only the 3rd commit gets applied to the master. | ||
git/git_cherry-pick.1479728228.txt.gz · Last modified: 2020/07/15 09:30 (external edit)