let's practice git flow
-
clone repository
git clone https://github.com/teamPotz/git-practice
-
change branch to develop
git switch develop
-
issue 만들기 practice project
-
issue에서 branch 만들기
git fetch origin git checkout feature/test
-
작업 후 commit, push
git add . git commit -m "A 기능 개발" git push
-
Pull Request 하기
- develop 브랜치로 개발한 브랜치를 pull request를 한다
-
Merge
- 팀원 코드 리뷰 후 merge
-
merge 완료 후 로컬에 남아있는 branch 삭제
git branch -D feature/test
참고: 깃허브로 그룹프로젝트 하는 법
- 가급적 다른 파일에서 작업한다
- 같은 파일내에서 같은 줄을 변경하면 충돌이 일어난다
- 커밋을 최대한 자주한다
- merge를 자주한다
- develop 브랜치 pull을 자주한다