投稿

ラベル(GitHub)が付いた投稿を表示しています

【Git】How to fix: fatal: Exiting because of an unresolved conflict on GitHub

Abstract I tried to push my repository to Git, but because of the error:  fatal: Exiting because of an unresolved conflict,  it failed. So, I wrote down the solution how to fix this error on this article. I'm not English native speaker, so I'm sorry if English grammar is weird. ;) Index Abstract Index Environment What I tried Solution Conclusion Environment ・mac OS Catarina 10.15.1(2017) ・Rails 6 ・heroku What I tried I tried to pull git local repository to master branch on GitHub. master-branch $ git pull origin master  But the error below happens:     error: Pulling is not possible because you have unmerged files.     hint: Fix them up in the work tree, and then use 'git add/rm <file>'     hint: as appropriate to mark resolution and make a commit. fatal: Exiting because of an unresolved conflict.   I'm not used to use git, so I tried merge or revert git branch. But it doesn't work well. By the ...

【Git】fatal: Exiting because of an unresolved conflict の解決法

この記事の概要  Git でプロジェクトをpushしようとしたら fatal: Exiting because of an unresolved conflict. というエラーが発生したので、このエラーの解決法を調べて自分なりにまとめてみました。 目次  この記事の概要 目次 環境 やろうとしたこと 対処法 まとめ 環境 ・mac OS Catarina バージョン10.15.1(2017モデル) ・Rails 6 ・heroku やろうとしたこと GitHubに修正したリポジトリの内容を、プルしようとした。 master ブランチ $ git pull origin master  ここまでは、特に問題がない。 が、     error: Pulling is not possible because you have unmerged files.     hint: Fix them up in the work tree, and then use 'git add/rm <file>'     hint: as appropriate to mark resolution and make a commit. fatal: Exiting because of an unresolved conflict.   というエラーが現れて、先に進めない。 git初心者なので、mergeをしたり、revertをしたり、色々と試してみたものの、うまくいかない...。 Tips: ちなみに、 $  git log --oneline --graph --all で 、ブランチの一覧を取得できる。 すると、aブランチとbブランチの間でいつの間にかブランチが枝分かれしていることがわかった。 以下:解決策 ① master をpullする % git pull origin master     error: Pulling is not possible because you have unmerged files. hint: Fix them ...