コンフリクト解消した後に--skipする

 No changes - did you forget to use 'git add'?
 If there is nothing left to stage, chances are that something else
 already introduced the same changes; you might want to skip this patch.
 Resolve all conflicts manually, mark them as resolved with
 "git add/rm <conflicted_files>", then run "git rebase --continue".
 You can instead skip this commit: run "git rebase --skip".
 To abort and get back to the state before "git rebase", run "git rebase --abort".
  • 例えばgit rebase masterなどしてコンフリクトが起きると、
  • コンフリクトしているファイルを修正してから、修正したファイルをgit addして、
  • git rebase --continueでrebaseを再び実行すると、
  • 上の"No changes - did you..."のようなメッセージが表示されることがある
  • これは、コンフリクトを修正した結果、最新のコミットと違いがなくなったことを意味する
  • したがってコミットする必要がないので、git rebase --skipを実行してrebaseを終わらせる

参考


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2020-04-07 (火) 04:35:52