Git Cherry-Pick No Commit Option
Table of Contents
Use the option -n
or --no-commit
.
git cherry-pick -n <commit-ish>
git cherry-pick --no-commit <commit-ish>
# Examples
git cherry-pick -n feature/foo # branch
git cherry-pick -n abc012 # commit id
Usage:
git cherry-pick
# usage: git cherry-pick [<options>] <commit-ish>...
# or: git cherry-pick <subcommand>
# ...
# -n, --no-commit don't automatically commit