개발 잘 하고 싶다 => 알고 쓰자/ERROR(삽질) 모음

[Git] error: Pulling is not possible because you have unmerged files.

장 상 현 2021. 8. 5.

$ git pull
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 pull 시 수정된 파일끼리 충돌하여 발생하는 에러?

 

아래 명령어로 해결

 

git fetch origin

git reset --hard origin/main

댓글