(์์)
-
๋ ํฌ์งํ ๋ฆฌ
fork
-
git clone
git clone {๋ณธ์ธ Repo ์ฃผ์}
-
๋ก์ปฌ ํ๊ฒฝ์์ ๊ธฐ๋ฅ ์ด๋ฆ์ผ๋ก ๋ธ๋์น ์์ฑ ํ ์์
git checkout -b {feature_name} // ๋ก์ปฌ ๋ธ๋์น ์์ฑ ํ ์์ฑํ ๋ธ๋์น๋ก ์ด๋ ์: git checkout -b calendar
-
์์ ์๋ฃ ํ
push
-
์ปค๋ฐ๋ฉ์ธ์ง ๊ด๋ จ ์ฐธ๊ณ : https://jane-aeiou.tistory.com/93
* ์ปค๋ฐ๋ฉ์ธ์ง ๊ตฌ์กฐ 'ํ์ : ์ ๋ชฉ ๋ณธ๋ฌธ(์๋ต ๊ฐ๋ฅ)'
git add . // ๋ชจ๋ ์์ ๋ด์ฉ ์คํ ์ด์ง git commit -m '{commit_message}' // ์ปค๋ฐ ๋ฉ์ธ์ง ์์ฑ git push origin {์ง๊ธ๊น์ง ์์ ํ ๋ธ๋์น ์ด๋ฆ} // ์๊ฒฉ ์ ์ฅ์์ ์์ ๋ด์ฉ push ์: git add . git commit -m 'Feat: ์บ๋ฆฐ๋ ๊ฐ ๋ ์ง๋ณ ์์ /์ง์ถ ๊ธ์ก ํ์ ๊ธฐ๋ฅ ์ถ๊ฐ' git push origin calendar
-
push
ํ ์นํ์ด์ง์์ Pull Request ์์ฑ- ์๋ณธ
repo:main
์ผ๋ก PR - ํ ํ๋ฆฟ ๋ง์ถฐ์ ์์ฑ: ์ฃผ์ ์์ ์ฌํญ ์ ๋ ฅ
- ์๋ณธ
-
PR Merge
ํ ์๋ณธ Repo์ ์๋ก์ด ์ปค๋ฐ๋ค์ ๋ณธ์ธ ๋ก์ปฌ Repo๋กpull
-
์ฐธ๊ณ : https://coding-groot.tistory.com/80
6-1. ์๋ณธ Repo ์ฃผ์ ์๊ฒฉ ๋ฑ๋ก (์ฒ์ ํ ๋ฒ๋ง ์ํ)
git remote add upstream https://github.com/dongur2/account_book.git
6-2. ๋ณธ์ธ ๋ก์ปฌ Repo๋ก
pull
git pull upstream main
6-3. ๋ณธ์ธ ์๊ฒฉ Repo๋ก
push
git push origin {branch_name}