git push 할 때
아래와 같은 오류가 나는 이유는
내가 작업한 변경사항이
다른 사람이 작업한 변경사항과 중첩되는 것을
Git이 탐지해서 앞에서 작업한 것을 뭉개지 않도록 정지시키는 것이라고 합니다.
git pull origin master
git push origin master
때문에 변경 사항을 pull 해서 가져온 후
현재 작업중인 작업본과 병합해서 push 해야합니다.
참고
https://statkclee.github.io/git-novice-kr/09-conflict/
'Git' 카테고리의 다른 글
Git commit message (0) | 2022.03.16 |
---|---|
Sourcetree gitlab CE 계정 추가 (0) | 2021.06.28 |
Sourcetree Clone 유효한 소스 경로/URL이 아닙니다. (0) | 2021.06.28 |
Git clone remote: HTTP Basic: Access denied, error: colud not lock config ... (0) | 2020.10.22 |
Ubuntu 16.04 Git 설치 (0) | 2018.11.27 |