공통
- fork (해당 Git에서)
- 내 브랜치만 클론
git clone -b asebn1 --single-branch <https://github.com/asebn1/java-racingcar.git>
1단계
- 내 로컬 PC에서 페어프로그래밍 진행
git checkout -b step1
- 페어의 로컬 PC에서 페어프로그래밍 진행 후
git remote add zero <https://github.com/asebn1(페어ID)/java-racingcar.git>
git pull zero step1
git push origin step1
2단계
git checkout asebn1(아이디) // 현재 step1이기에 바꿔준다.
git branch -D step1(브랜치명) // 진행한 브랜치 삭제
- 통합(merge)한 woowacourse 저장소와 동기화
git remote add **zero** <https://github.com/woowacourse/java-lotto.git>
git remote -v // 전체 remote 저장소 목록 보기
- 저장소에서 내 브랜치 가져오기 (로컬) - 가져오긴 했지만 아직 반영X
git fetch zero asebn1(본인아이디)
- woowacourse와 자신의 브랜치를 동기화 - 반영 (rebase)
git rebase zero/asebn1(아이디)
git checkout -b step2(브랜치명)
댓글