[git] fork해온 레포 최신 버전 가져오기

숭글·2023년 6월 6일
0

리모트에 업스트림 있는 지 확인한다.

git remote -v

없으면 추가한다.

git remote add upstream [원본 git 링크]

upstream으로부터 fetch한다.

git fetch upstream
git branch -a

목록 확인하면 remotes/upstream/main가 생겼을 것이다.

머지하고

git merge upstream/main

푸쉬!

git push origin
profile
Hi!😁 I'm Soongle. Welcome to my Velog!!!

0개의 댓글