- Local repository
- μμ±λ°©λ²
- (1) local νκ²½μμ νλ‘μ νΈ μ§ννλ €λ empty repository μ μ§μ
ν λ€μ
git init - (2) Github μμ μμ±ν repository λ₯Ό
git clone
- (1) local νκ²½μμ νλ‘μ νΈ μ§ννλ €λ empty repository μ μ§μ
ν λ€μ
- μμ±λ°©λ²
- Remote repository
-
remote λ Github μ μ‘΄μ¬νκ³ μλ repository λ₯Ό μ§μΉνλ©°, origin μ remote repository μ λΆμΈ μ΄λ¦μ
"'origin' λ git clone λͺ λ Ήμ΄ μλμΌλ‘ λ§λ€μ΄μ£Όλ 리λͺ¨νΈ μ΄λ¦μ΄λ€. git clone -o booyah λΌκ³ μ΅μ μ μ£Όκ³ λͺ λ Ήμ μ€ννλ©΄ booyah/master λΌκ³ μ¬μ©μκ° μ ν λλ‘ λ¦¬λͺ¨νΈ μ΄λ¦μ μμ±ν΄μ€λ€." (link)
-
local κ³Ό remote μμ λ΄μμ μλ‘ λ°μ(λκΈ°ν)νκΈ° μν΄
git push(local μμ remote λ‘),git pull(remote μμ local λ‘) -
μμ±λ°©λ²
- (1) local μμ μ§μ
git initν κ²½μ°,git remote -vλͺ λ Ήμ΄λ‘ remote μ€μ μ νμΈν λ€μgit remote add origin https://github.com/κΉνμ μ λ€μ/μ μ₯μμ΄λ¦.gitμΌλ‘ Github μ μμ±ν remote repository λ₯Ό μ°κ²° - (2) μ΄λ―Έ init νμ¬ νμκ΄λ¦¬ λκ³ μλ repository λ₯Ό Github μμ
git cloneλ°μ κ²½μ°, origin μ€μ λ λμ΄ μλ μν
- (1) local μμ μ§μ
-
- Upstream repository
- Downstream repository
