Skip to content

Instantly share code, notes, and snippets.

@wizard-paso
Last active October 13, 2015 19:47
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wizard-paso/4246134 to your computer and use it in GitHub Desktop.
Save wizard-paso/4246134 to your computer and use it in GitHub Desktop.
git for windows クライアントでコンフリクトが起きた場合の処置
OPEN SHELLを選択
git statusを入力、エンター
both modified: ファイル名
と、コンフリクトを起こしているファイル名が表示されるので、
エディタ(メモ帳は改行が反映されてないので出来ればそれ以外、Sublime、Terapadなど)で開く
<<<<<<<<<<<<と
============と
>>>>>>>>>>>>が
ファイル上に追記されているので、
上下で比較しつつ修正し、
<<や==、>>も消す。
そのあと、
git add . と入力。
そのご、
git rebase --continueと入力すると、
コンフリクトンが解決する
あるいは、
Applying: なんとか、
No changes - did you forget to use 'git add'?
みたいなことを言われたら、修正後にGithubが保持するデータに結果的になっており、再コミットが必要ない状態なので、
git rebase --skipと入力し、rebase画面を抜ける
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment