- "HackerAlgorithm" organization ์์ฑ
- "study" organization repo ์์ฑ
- ๋ฐ๋์ ํ ๋ฌธ์ ๋น 1 branch, 1 commit, 1 PR(Pull Request)์ ์์ฑํ๋ค.
- CodeReview๋ ๋น์์ด๋ง ์ฌ์ฉํ์ง ์๋ ์กฐ๊ฑด์ผ๋ก ์์ ๋กญ๊ฒ ์์ฑํ๋ค.
- CodeReview๊ฐ ๋๋๊ธฐ ์ ๊น์ง PR์ mergeํ์ง ์๋๋ค.
- main branch์ ์ต์ ๋ด์ฉ์ ๊ฐ์ ธ์จ๋ค.
git pull origin main - main branch๋ก ์ด๋ํ๋ค.
git checkout main - ์๋ก์ด branch๋ฅผ ์์ฑํ๊ณ ํด๋น branch๋ก ์ด๋ํ๋ค.
git checkout -b "branch name"3-1. branch name ํ์:(๋ณธ์ธ ์์ด ์ด๋ฆ)_(๋ฌธ์ ๋ฒํธ)3-2. ex)seongju_25205seongju_ECR129_A3-3. ๊ทธ๋ฅ branch ์์ฑ์git branch "branch name"3-4. ํด๋น branch๋ก ์ด๋์git checkout "branch name" - ์ถ๊ฐํ๊ณ ์ถ์ ํ์ผ์ ๋ฐ๋ก ์์ ๊ฒฝ๋ก๊น์ง ๋ค์ด๊ฐ์
git bash - ๋ณ๊ฒฝ๋ ํ์ผ์ addํ๋ค. (local folder -> staging area)
git add "file name"5-1. file name ํ์:(๋ณธ์ธ ์์ด ์ด๋ฆ)_(๋ฌธ์ ๋ฒํธ).cpp5-2. ex)seongju_25205.cppseongju_ECR_129_A.cpp - commit์ ๋ง๋ ๋ค. (staging area -> local repo)
git commit -m "commit message"6-1. commit message ํ์:[CREATE/UPDATE/DELETE] (file name)6-2. ex)[CREATE] seongju_25205.cpp - remote์ pushํ๋ค. (local repo -> remote repo)
git push origin "branch name"
- ์์ ๊ณผ์ ์ ๋ง์น๊ณ repo์ ์๊ธด
Compare & pull request๋ฒํผ์ ํด๋ฆญํ๋ค. - PR ๋ด์ฉ์ ์์ฑํ๊ณ ,
Create pull request๋ฅผ ํด๋ฆญํ๋ค. 2-1. PR title ํ์:(๋ณธ์ธ ํ๊ธ ์ด๋ฆ) / [(ํ๋ซํผ) (๋ฌธ์ ๋ฒํธ)] (๋ฌธ์ ์ด๋ฆ)2-2. ex)์ด์ฑ์ฃผ / [BOJ 25205] ๊ฒฝ๋ก๋นํํฌ 2077์ด์ฑ์ฃผ / [CodeForce ECR129] A2-3. PR ๋ด์ฉ์ default ํ์์ ๋ง์ถฐ์ ์์์ ์์ฑ - ์ค๋ฅธ์ชฝ ๋ฉ๋ด์
Reviewers,Assignees,Labels๋ฅผ ์ค์ ํ๋ค. 3-1.Reviewers๋ ์ ์ ์ฒดํฌ 3-2.Assignees๋ ๋ณธ์ธ๋ง ์ฒดํฌ 3-3.Labels๋ ํน๋ณํ ๋ค๋ฅธ ๊ฒฝ์ฐ๊ฐ ์๋๋ฉดReview needed๋ก ์ฒดํฌ
- Code Review๊ฐ ์งํ๋๋ค. (๋ด์ฉ ์ถ๊ฐ ์์ )
- Code Review๊ฐ ์ ๋ถ ๋๋๋ฉด,
Merge pull request๋ฅผ ๋๋ฌ mergeํ๋ค.