0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Cherry-pickの基本的な使い方

Posted at

Cherry-pickとは

特定のコミットを指定して、その差分だけブランチに取り込める操作のこと。
別ブランチに取り込みたい差分があるけど、ブランチをマージしたくない!!
そんなときに便利。

コマンド

取り込み先の作業ブランチに移動して、下記のコマンドを叩く。

$ git cherry-pick [取り込むコミットID(短縮系でも可)]

コミットIDの確認方法

これで確認できる。

$ git log

短縮系のコミットIDでもいいから、より多くのコミットを一度に確認したい!というときは...

$ git log --oneline
0
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?