공부기록/git

git conflict rebase 로 처리하기

_우지 2022. 9. 30. 20:05
  1.  pull requests 를 보낸 해당 브랜치로 갑니다.
  2.  git remote add upstream https://github.com/PNU-SWEFI/Among
  3.  git fetch upstream main (upstream/main 이라는 브랜치가 자동으로 생성됩니다!) 
  4. git rebase upstream/main
    - 계속 하려면 
      git rebase --continue
    - 취소 하려면
      git rebase --abort
  5. git push origin -f [브랜치 이름]