남의 github repo에 기여하기

2021. 4. 5. 17:56coding

반응형

1. 기여하고 싶은 repo를 내 repo로 fork 해오기 (github 웹사이트 내 fork 버튼)


2. fork해온 repo를 clone해오기 : fork 해오면 github.com/[내 아이디]/[원래 repo 이름] 같이 url이 생성된다

git clone [내 repo로 fork해온 url]

 

+ git remote add origin [내 repo로 fork해온 url]

 

3. 업데이트된 내용 있을 때 받아오기 

git pull origin main

 

4. 내 브랜치 생성 
git checkout -b [생성하고 싶은 브랜치 이름]

 

5. 기여하고 싶은 것 열심히 수정 추가 ... 

 

6. add 
git add [커밋하고 싶은 파일]

 

7. commit 
git commit -m '커밋 메시지'

 

8. push 
git push origin [아까 생성한 브랜치 이름]


9. github 웹사이트에 pull request 버튼 누르기 

반응형