[TIL] 프로젝트 진행중 conflict가 난다면?

김땅주·2021년 4월 29일
0

TIL

목록 보기
8/33
post-thumbnail


각 branch에서 작업을 마치고 remote 로 push 하고 merge를 하면 충돌
일어날때가 종종 있는데, remote의 내용과 local 에 있는 내용이 다르거나 겹칠때 일어난다


💡해결방법


🚨상황

local branch -- push --> remote branch

push한 branch와 main을 merge => conflict!!!


  1. 작업하던 branch 에서

    $git pull origin main

  2. conflict 수정 완료 후,

    $git push origin 해당브렌치명

  3. pull request에서 merge

  4. 팀원들이 수정된 branch를 받아온다

    $git pull origin main

profile
일곱 번 넘어져도 여덟 번 일어나면서 성장하는 프론트 개발자입니다

0개의 댓글