@Pkun

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

git コンフリクトしてしまったんですが、どうしたら解消できますか?

解決したいこと

gitでコンフリクト起こてしまったんですがどうやって解決すればいいんでしょうか?
情報量がネットは多すぎてわかりません。
$ git merge origin/main
Auto-merging index.html
CONFLICT (content): Merge conflict in index.html
Automatic merge failed; fix conflicts and then commit the result.

yuuit@DESKTOP-9TFE9EL MINGW64 ~/yafhoochiebukuro (main|MERGING)

main|MERGING
これってコンフリクトしおますよっていう意味ですよね?

あと、それとは別でpullした時に失敗したと思った時以前の状態に戻すやり方ってどうやればいいんでしょうか?
分かる方どうかよろしくお願いしますm(_ _)m

0 likes

1Answer

git コンフリクト 対処
とかで検索して出てくる内容をまずは試してはいかが?

git コマンドを実行するのが不安なら、コマンド試行用のリポジトリを作って失敗覚悟で試行錯誤してみることがお勧めですよ。

0Like

Your answer might help someone💌