주인 A
git init
git add .
git commit -m "first commit"
git remote add origin [git_repository_주소]
:
git push origin master
기여자 B
git clone [리퍼지토리 주소] ([폴더이름])
- 로컬에서 작업을 진행합니다.
git add *
git commit -m "contributor\'s first commit"
git checkout -b [브랜치 이름]
: 본인의 작업을 올릴 브랜치를 생성합니다.
git push origin [브랜치 이름]
- git repository주소에 접속해
compare & pull request
를 누릅니다.
다시 주인 A
merge pull request
- 우린 1인2역 중이기 때문에 bash를 master로 옮겨 놓습니다
git add *
git commit -m "내 로컬작업 + 브랜치 작업이 합쳐진 최종본"
git pull origin master
- merge에러가 발생한다면
git push origin master