Git Tips Slides
PageUp x2: previous · PageDown x2: next · Home: index

cherry-pick -n

git cherry-pick ... creates a new commit automatically. Sometimes you don't want only some changes of the original commit.

You can use --no-commit (short form: -n) to apply the changes without creating a commit immediately. Then you can modify the result and commit manually.

git cherry-pick --no-commit <commit-hash>