티스토리 뷰
1. 깃 리모트 상태 확인
$ git remote -v
- upstream 에 원본 저장소가 연결되지 않았다면
$ git remote add upstream 주소
2. fetch를 통해 원본 소스코드 내용을 받음
$ git fetch upstream
3. 내려받은 코드를 실제 내 repository에 merge
$ git merge upstream/main
4. 내 원격 저장소로 푸시
$ git push
출처
https://jybaek.tistory.com/775
'Git' 카테고리의 다른 글
Gitlab -> Github 100mb 이상 migration (0) | 2021.03.31 |
---|---|
Git branch 옵션 정리 (0) | 2021.03.05 |
Git remote repository 변경 (0) | 2021.03.03 |
Git Repository migration (0) | 2021.02.28 |
push 된 file 에 .gitignore 적용시키는 방법 (0) | 2021.01.22 |