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
'Git, Github' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
.gitignore ํ์ผ ์์ฑ(feat. Git์ ์ถ๊ฐ๋์ง ๋ง์์ผ ํ ํ์ผ ์ ์) (0) | 2024.10.10 |
---|---|
push ํ ์ปค๋ฐ ๋ฉ์์ง ์์ (0) | 2024.10.07 |
[VSCode]๋ก์ปฌ์์ ์์ ํ๋ ํ๋ก์ ํธ ์ต์ด๋ก Github์ ์ฌ๋ฆฌ๊ธฐ (0) | 2024.08.09 |