contentsx

関連ページ

fetch/pull 中に「The server's host key is not cached in the registry.」みたいなメッセージが表示され、Yes/No が選択できない場合

複数のコミットを一気に cherry-pick したい場合

手順

  • SourceTree を立ち上げ、cherry-pick したいリポジトリを開く
  • 【optional】cherry-pick 用のブランチを切る
  • 操作 > ターミナルで開く (or Shift-Alt-T)
  • 以下のコマンドを入力する $ git cherry-pick (古い方のリビジョン)^..(新しい方のリビジョン)
  • 衝突がなければこれで終わりで、SourceTree に戻れば cherry-pick された様子が確認できるはず

衝突した場合

  • 以下のようなメッセージが表示される
$ git cherry-pick 784c71f^..ec4b5a8 error: could not apply 784c71f... Android 版をビルドできるように、BatchBuild に修正を加えた hint: after resolving the conflicts, mark the corrected paths hint: with 'git add <paths>' or 'git rm <paths>' hint: and commit the result with 'git commit'
  • 指示通り、SourceTree で衝突しているファイルが表示されるので、衝突を解消する
  • コミットする
  • ターミナルに戻り、以下のコマンドを叩く $ git cherry-pick --continue

衝突して、やっぱり cherry-pick をやめたい場合

  • ターミナルで以下のコマンドを叩く
$ git cherry-pick --abort