1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Git】範囲cherry-pickでmergeコミットを飛ばしたかった

Posted at

TL;DR

やりたかったこと

cherry-pickで、mergeコミットを含む範囲のコミットを取ろうとしていました。
一方、この操作をやるとerror: commit ${ハッシュ} is a merge but no -m option was given. fatal: cherry-pick failedと怒られます。
脳死で-mオプションを付けてもmergeコミットは飛ばせませんでした。

やり方

冒頭に書いた通りgit rebase --ontoで出来ました。

1
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?