main: 최상위 디폴트 브랜치develop: 각feature브랜치 병합을 위한 베이스 브랜치feature: 개인 작업 브랜치 (feature/T2096)
- 본인의 작업범위에 해당하는 파일에서 작업
- 가급적 클래스 및 함수화를 고려하며 작업
- Git Bash 열기
- Clone 원하는 경로로 이동
git clone https://github.com/nazzang49/bc-module-assignment.git
cd bc-module-assignment
git branch (브랜치 확인)
git flow init (선택사항 => 명령어 입력 후 Enter 쭉-)
git checkout develop
git branch feature/T2096 (본인 캠퍼 아이디)
git branch (작업 브랜치 생성 확인)
git checkout feature/T2096
git push --set-upstream origin feature/T2096 (remote 최초 업로드)
- 위 단계까지 마무리 하면
maindevelopfeature/T2096모두Local = Remote형상 싱크 완료 - Github 에서 작업 브랜치 생성되었는지 확인
- 본인
feature/T2096작업 브랜치에서 단위 작업 완료 시 Commit and Push develop병합 => 의논 후 진행
git add .
git commit -m 'init'
git push origin
- 받고자 하는 브랜치로 이동
git fetch origin
git pull origin
- 로컬에서 변경사항 확인
- SourceTree
- GitKraken
- GitDesktop
- Github
- ArcroDiff