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

[Git] Please commit your changes or stash them before you merge. 에러

장 상 현 2021. 7. 27.

error: Your local changes to the following files would be overwritten by merge:
        app.js
Please commit your changes or stash them before you merge.

 

 

하나의 브랜치를 공유할 때 충돌시 발생하는 오류

 

아래의 명령어로 해결!

 

git stash && git pull origin main && git stash pop

 

git stash && git pull origin main && git stash pop

댓글