Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

원본 저장소와 Fork한 저장소 동기화 하는 방법 #270

Open
Jiny530 opened this issue Feb 16, 2022 · 0 comments
Open

원본 저장소와 Fork한 저장소 동기화 하는 방법 #270

Jiny530 opened this issue Feb 16, 2022 · 0 comments

Comments

@Jiny530
Copy link
Member

Jiny530 commented Feb 16, 2022

*Fork 저장소에서 수행

  1. 연결된 저장소 확인
   git remote -v
   
   // 명령어 결과가 아래처럼 나온다면 아직 원본 저장소와 연결되지 않은 상태
   origin https://github.com/포크 저장소.git (fetch) 
   origin https://github.com/포크 저장소.git (push) 

  1. 원본 저장소 연결하기
   git remote add upstream https://github.com/원본 저장소.git
  1. 원본 저장소의 최신 커밋 받아오기
   git checkout main // 커밋을 적용할 브랜치
   git fetch upstream
   git merge upstream/main
  1. fork한 저장소에 최신 커밋 반영하기
   git push origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant