Etc. Command
๋์๋ง ๋ณด๊ธฐ
help ๋ช ๋ น์ด๋ก ๊ฐ ๋ช ๋ น์ด ๋ฐ ์ต์ ์ ๊ธฐ๋ฅ์ ๋ํด ์ดํด๋ณผ ์ ์์
# Git์์ ์ ๊ณตํ๋ ๋ชจ๋ ๋ช
๋ น์ด ๋ณด๊ธฐ
$ git help -all# ํน์ command์์ ์ฌ์ฉํ ์ ์๋ ๋ชจ๋ ์ต์
๋ณด๊ธฐ
$ git [command] -help
์ธํ
๋ฐ ์ด๊ธฐํ
Repository๋ฅผ ์ด๊ธฐํํ๊ฑฐ๋ ์กด์ฌํ๋ Repository๋ฅผ clone
# ํ์ฌ directory๋ฅผ ๊ธฐ์ค์ผ๋ก Git ์ ์ฅ์๊ฐ ์์ฑ
$ git init# URL์ ํตํด remote Repository๋ฅผ local Repository์ ๋ณต์
$ git clone [url]
Stage & Commit
stage ์์ญ์ ์ด์ฉํ์ฌ commitํ ์ ์์
๋น๊ต ๋ฐ ๊ฒ์ฌ
๋ก๊ทธ ๋ฐ ๋ณ๊ฒฝ ์ฌํญ์ ๊ฒ์ฌํ ์ ์์
๊ณต์ ๋ฐ ์
๋ฐ์ดํธ
ํน์ Repository์ ์ ๋ฐ์ดํธ ์ฌํญ์ ๊ฒ์ํ์ฌ local Repository๋ฅผ ์ ๋ฐ์ดํธ ํ ์ ์์
ํ์คํ ๋ฆฌ ์์
๋ธ๋์น ๋๋ commit์ ์์ ํ๊ฑฐ๋ commit ํ์คํ ๋ฆฌ๋ฅผ ์ง์ธ ์ ์์
์์ ์ ์ฅ
๋ธ๋์น๋ฅผ ์ ํํ๊ธฐ ์ํด ๋ณ๊ฒฝ๋์๊ฑฐ๋ ์ถ์ ์ค์ธ ํ์ผ์ ์์๋ก ์ ์ฅํ ์ ์์
Last updated