LoginSignup
0
0

More than 5 years have passed since last update.

cherry-pickを使って特定のコミットだけプッシュする方法

Posted at

リモートリポジトリから特定のコミットをpushする

過去に修正していた余分なコミットがgithub上に反映されてしまったことがある。
Commits_·_ngron_sample_app.png

そのようなコミットは除外したいので特定のコミットだけを反映させたいときがある。
その時に使うのがcherry-pick。

使い方

cherry-pick (コミット番号)

これを実行すれば指定したコミット番号だけをローカルリポジトリに取り入れることができる。

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