Computer Science/Git
[git error] Your local changes to the following files would be overwritten by merge
happy coding!
2018. 8. 20. 15:03
반응형
[git error] Your local changes to the following files would be overwritten by merge
git 에서 pull 을 할 때 종종 위와 같은 에러가 발생할 때가 있다.
이 경우에는 "Please commit your changes or stash them before your merge"라고 메시지가 출력되는데
원격 저장소의 내용으로 덮어 씌워져도 괜찮다면
git stash
git pull
을 사용하면 해결된다.
[git stash]
[git pull]
[참고 링크]
https://git-scm.com/book/ko/v2/Git-%EB%8F%84%EA%B5%AC-Stashing%EA%B3%BC-Cleaning
http://vezi95.blogspot.com/2016/05/git-pull.html
반응형