기록하기

error: failed to push some refs to ~ (git 오류) 본문

기타

error: failed to push some refs to ~ (git 오류)

_parkdaxun 2022. 5. 23. 10:58

 

git push origin master 명령어를 쳤는데 이렇게 나오길래 당황.. 그래서 구글링 해봄 뭐가 문제인지

 

원인은 원격저장소에 내 로컬에 없는 파일이 있을 때 내 파일을 push 하면 뜬다고 함.. 해결방법은

 

 

 

1.

git pull origin master

 

2.

git push origin master

 

 

순서대로 하면 해결 됨!! 

생각보다 간단해서 좀 당황스러워따..