[Git/협업] git으로 협업하기

Yeongsan Son·2020년 10월 27일
0
post-thumbnail

협업의 흐름

1. fork repo on Github

같은 레퍼지토리의 파일 원본을 fork 한다.

2. clone their repo to local

각자의 로컬(PC) 레퍼지토리로 clone 한다.

3. Add pair's fork as remote

페어의 remote 레퍼지토리와 연결한다.

  • git remote add pair (페어의 repo URL)
  • git remote -v

4. Commit change to local repo

로컬 레퍼지토리의 변경 사항을 commit 한다.

  • git add (file 명)
  • git commit -m '내용'

5. Push my code to my remote origin

commit한 내용을 remote 레퍼지토리에 push 한다.

  • git push origin master (or other branch name)

6. Pull pair's code to local repository

페어가 나의 코드를 pull 한다.

  • git pull pair master (or other branch name)

이 일련의 과정을 반복하는 것으로 깃 협업이 시작된다.

협업의 흐름을 익히며

A. 순한맛

💻 서로 중복되는 부분을 작업할 때 수정하기에 용이하다
💻 귀찮은 작업일 줄 알았는데 생각보다 편하다
💻 작업한 코드를 주고받는 과정이 재미지다

B. 매운맛

💻 깃은 아직 나에게 미지의 세계이다

profile
매몰되지 않는 개발자가 되자

0개의 댓글