원인

로컬저장소와 원격저장소의 상태가 다른경우 발생

 

해결방안

pull한 뒤 push하면 됨

 

$ git pull origin 브랜치명 --allow-unrelated-histories

 

* 브랜치 목록 확인하는방법 
$ git branch -a

 

그런데도 안되면 강제 push 하면 됨

 

* 강제 push 하는방법

$ git push origin +master

 

+ Recent posts