Git, Github
Git ๋ช ๋ น์ด
๋ฟ๋น
2024. 8. 9. 16:50
728x90
๐ฅ ๋ง์ด ์ฐ๋ ๋ช ๋ น์ด
Push (๋ด๋ณด๋ด๊ธฐ โ)
Pull (๊ฐ์ ธ์ค๊ธฐ โ)
fetch (๊ฐ์ ธ์ค๊ธฐ๋ง โ)
Clone (๋ณต์ )
Merge (๋ณํฉ)
git ๋ช ๋ น์ด | |
git init | git ์ด๊ธฐํ๋ฅผ ์๋ฏธํ๋ค. ๋น์ด์๋ local ํด๋์ ๋ค์ด๊ฐ git init์ ์คํํ๋ฉด ํด๋น ํด๋์ .git ํ์ผ๋ง๋ ๋ค. ์ด๋ ๊ฒ ํ๋ฉด git repository์ ์ฐ๋์ํฌ ์ค๋น๋ฅผ ํ๋ ๊ฒ์ด๋ค. |
git status | git์ ์ํ๋ฅผ ํ์ธํ๋ค.(์ค์) |
git add | ์์ฑํ ํ์ผ์ ์คํ
์ด์ง(staging)ํ๋ค. Git์ด ์ถ์ ํ๊ณ ์๋ ์์ ๋ ํ์ผ์ด work Tree์์ index(=staging area)์ ์ ์ฅ๋๋ค. |
git commit | staging area์ ์ ์ฅ๋๋ ํ์ผ์ด local repository๋ก ์ ์ฅ๋๋ค. |
git push | local repository์ ๋ด์ฉ์ remote repository๋ก ์ ๋ก๋ ํ๋ค. |
git pull | local repository์ ๋ด์ฉ์ remote repository์์ ๊ฐ์ ธ์จ๋ค. |
git clone | .git์ ํฌํจํ remote repository์ ํ์ผ๋ค์ local repository์ ๋ณต์ฌํ๋ค. (github์์ zip ํ์ผ๋ก ๋ฐ์ผ๋ฉด .git ํด๋๊ฐ ์๋ค๋ ๊ฒ์ด ๋ช ๋ น์ด์์ ์ฐจ์ด์ ) |
git config | git์ ๊ธฐ๋ณธ ์ค์ ๊ฐ๋ค ํ์ธ(user name ๋ฐ email ๋ ์ด์ชฝ์์ ํ์ธ ๊ฐ๋ฅ) |
git log | ์ปค๋ฐ ์ด๋ ฅ ํ์ธ |
728x90