fork한 저장소에 원본 저장소 코드 fetch, merge 하기 Fetching and merging the original repository code to the forked repository

fork한 저장소에 원본 저장소 코드 fetch, merge 하기 Fetching and merging the original repository code to the forked repository

notion image
notion image
notion image
git remote에 upstream이라는 원본저장소를 등록한 다음 git fetch를 받는다.
git merge를 받으면 main에 반영된다.
main 브랜치에서의 프로젝트 코드가 받아진 것을 확인하고 나면 git branch [이름]을 사용해 새로운 브랜치를 생성하고
git checkout [이름] 으로 이동한다음 다시 작업한다.