CS/OS

[Git] git contribute process

ilyadelavie 2022. 7. 1. 17:09

Process


기존 Repository에 기여하고 싶을 경우 해당 Repo를 fork,clone 하여 파일 수정 후 push한다.

  1. [browser]기여에 참여할 원본 Repository fork
  2. [browser]본인 계정에 생성된 Repository의 주소 복사
  3. 터미널에서 clone 하여 Local Repository 생성
    • $ git clone https://github.com/UserName/gitAdress
  4. 수정 혹은 변경할 파일 Local Repository에 작성
  5. 해당 파일 Staging Area에 add
    • $ cd <Local Repository 경로>
    • $ git add <file name.txt>
  6. Remote Repository에 커밋
    • $ git commit -m "commit message"
  7. 본인 계정 Remote Repository에 push
    • $ git push origin main(branch명)
  8. [browser]원본 Repository에 pull request 요청