LoginSignup
1
1

More than 5 years have passed since last update.

コミットした内容を他のブランチで読み込む(cherry-pick)

Posted at

cherry-pickを使う

git cherry-pick [コミットNo]

cherry-pickは特定のコミットのみ取り込むことが可能

error: commit commitNumber is a merge but no -m option was given.
fatal: cherry-pick failed

このエラーが出た場合は

git cherry-pick -m 1 [コミットNo]

あとはconflictが起きた箇所を解消すればokです。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1