-
๊ณต๋์ git -> fork
-
๋ด repo name ํ๋จ์ ๊ณต๋์ git ์ฃผ์ ํ์ธ
-
๋ด repo์์ clone (๋ด repo git ์ฃผ์)
;clone ํ ๊ฒฝ์ฐ ์๋ ์์ฑ -> git init & git remote add origin (๋ด repo git ์ฃผ์) -
git remote add upstream (๊ณตํต์ repo git ์ฃผ์)
; upstream ์ด๋ผ๋ branch ์์ฑ //remote๋ ์์ ์ ํ ์์ ๋ฌด๊ด
//upstream branch ์์ฑํ ์ด์ ; ์ถฉ๋์ pull ํ ์ถฉ๋ ํด๊ฒฐํ๊ธฐ ์ํด -
์์ ํ add-commit -> push ํ ๊ฒฝ์ฐ branch๋ช ์ ์ ์ํด์ผํจ
; push ๋ด repo์ ํด์ฃผ์ด์ผํจ //๋ด repo๋ก pushํด์ pull-request ํ๋ ์์
git push origin master - > pull-request
- git pull upstream master (๊ณตํต ์์ ์ ์์ ํด์ผํจ)
- ์ถฉ๋ ํด๊ฒฐ ํ
์์ ํ add-commit -> push ํ ๊ฒฝ์ฐ branch๋ช ์ ์ ์ํด์ผํจ
; push ๋ด repo์ ํด์ฃผ์ด์ผํจ
git push origin master - > pull-request
- ls : ํ์ผ list
- ls - a : ์จ๊ฒจ์ง ํ์ผ list๊น์ง ๋ชจ๋
- cd : ์์ ํด๋๋ก ์ด๋
- pwd : ํ์ฌ ์์ ๊ฒฝ๋ก
- git remote โv
- git branch : ํ์ฌ ์ด๋ค branch ์์นํ๋์ง
; ํ์ฌ ์์
์ค์ธ ํ์ผ์ด ์๋ ํ์ฌ ์์
๊ณผ ๋์ผํ ๋ด์ฉ์ ๊ฐ์ง๋ฅผ ์ณ ๋ณธ๋ ์์
์ merge
//๋ณธ ์์
์ ๊ฑด๋ค์ง ์๊ณ ์์ ์ฌํญ์ ํ์ธํด๋ณผ ์ ์์
//merge -> ๋ณธ ์์
์ ์์ ํ ์ฌํญ์ ์
๋ฐ์ดํธ