-
Notifications
You must be signed in to change notification settings - Fork 9
github flow

username: ๋ณธ์ธ์ ๊นํ ์ ์ ํ URL์ github.com/username <== ๋ท ๋ถ๋ถ ์ฟผ๋ฆฌ ํ์ธ
email: https://github.com/settings/profile์ ์ค์ ๋ Public email
upstream ์ ์ฅ์: https://github.com/remote-develop-study/fp-study-ground
origin ์ ์ฅ์: https://github.com/์์ ์username/fp-study-ground
upstream ์ ์ฅ์ URL: https://github.com/remote-develop-study/fp-study-ground
=> ์์ ์ ๊ณ์ ์ ์ ์ฅ์ ๋ณต์ฌ๋จ
origin ์ ์ฅ์ https://github.com/์์ ์username/fp-study-ground
$ git clone https://github.com/์์ ์username/fp-study-ground3. ์ ์ฅ์ ๊ณ์ ์ ๋ณด ์ด๊ธฐํ (์ฐธ๊ณ )
$ git config user.name "์์ ์username" ์
๋ ฅ
$ git config user.email Public-email ์
๋ ฅ=> ์ ๋๋ก๋ ์ ๋ณด ์ ๋ ฅ๋์๋์ง ํ์ธ
$ git config user.name
$ git config user.email$ git remote add upstream https://github.com/remote-develop-study/fp-study-ground=> ์ ๋๋ก๋ ์ ๋ณด ์ ๋ ฅ๋์๋์ง ํ์ธ
$ git remote -v=> ์ ์ ๊ฒฐ๊ณผ
origin https://github.com/์์ ์username/fp-study-ground.git (fetch)
origin https://github.com/์์ ์username/fp-study-ground.git (push)
upstream https://github.com/remote-develop-study/fp-study-ground (fetch)
upstream https://github.com/remote-develop-study/fp-study-ground (push)// ๋ธ๋์น ๋ณ๊ฒฝ๊ณผ ์์ฑ์ ๋์์ํจ (local)
$ git checkout -b ์์ ์username
// ์์ฑ๋ ๋ธ๋์น๋ฅผ ์์ ์ ์ ์ฅ์์ ๋ฐ์ (origin)
$ git push --set-upstream origin ์์ ์username
// ์์ฑ๋ ๋ธ๋์น๋ฅผ ์ค๊ฑฐ๋์ด์ ์ ์ฅ์์ ๋ฐ์ (upstream)
$ git push --set-upstream upstream ์์ ์username$ git pull upstream masterorigin ๋ธ๋์น์ ํธ์ํ๋ ๊ณผ์ ์ TS ์คํฐ๋์ ๋์ผํฉ๋๋ค
// git add & git commit ์๋ฃ ํ
$ git push origin ์์ ์๋๋ค์-
๋ธ๋ผ์ฐ์ ๋ฅผ ํตํด ์ ์ฅ์ ์ ์ (origin ๋๋ upstream ์๊ด์์)
-
Compare & pull requestํด๋ฆญ -
base
์์ ์ ๋ธ๋์น<= compare์์ ์ ๋ธ๋์น์ ํ
์ ๋ master ๋ธ๋์น๋ ๊ฑด๋๋ฆฌ์ง ์์ต๋๋ค (๋ณธ์ธ์ด ์ถ์ ํ ๊ฒฝ์ฐ์๋ง ๊ฐ๋ฅ)
-
ํํ
diff(๋ณ๊ฒฝ์ฌํญ) ํ์ธ ์๋ชป๋ ์ฝ๋ ์ ๋ ฅ์ด ์๋์ง ํ์ธํ๊ธฐ ์ํจ -
pull request
์ ๋ชฉ๊ณผ๋ด์ฉ์์ฑ
ํ์์ ๋ฐ๋ผReviewers์Assigners๋ฅผ ์ค์ ํด์ ์ฝ๋๋ฆฌ๋ทฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค(๊ธฐ๋ณธ์ ์ผ๋ก๋ ์ ํ ์๋ฝ ๊ฐ๋ฅ)
Labels์ ์ํฉ์ ๋ง๊ฒ ๋ฃ์ด์ฃผ์ธ์
ํ์์ฌํญ: ์ ๋ชฉ, ๋ด์ฉ, Labels
=> Create pull request ํด๋ฆญ
https://milooy.wordpress.com/2017/06/21/working-together-with-github-tutorial
https://wayhome25.github.io/git/2017/07/08/git-first-pull-request-story
https://steemit.com/github/@nadongguri/github-repository-push-pull-request