Table of Contents

オプション-nまたは--no-commitを使う。

git cherry-pick -n <commit-ish>
git cherry-pick --no-commit <commit-ish>

# 例
git cherry-pick -n feature/foo # branch
git cherry-pick -n abc012 # commit id

使い方:

git cherry-pick
# usage: git cherry-pick [<options>] <commit-ish>...
#    or: git cherry-pick <subcommand>

#     ...
#     -n, --no-commit       don't automatically commit