본문 바로가기

Git

[Git][Sourcetree] 소스트리 pull / push 에러 발생 시 강제 pull 하는 방법

 

 

Please commit your changes or stash them before you merge

 

 

Sourcetree 에서 push 를 하려는데 해당 에러가 발생했다.

병합 과정에서 충돌이 일어난 것이다.

 

 

Sourcetree 에서 터미널을 킨 후

 

git pull --rebase --autotash

 

 

를 입력 해주면 pull 되고 정상적으로 push 할 수 있다.

해결