Git ๋ช
๋ น์ด๋ฅผ ์ค์ โ ์ ์ฅ์ โ ๋ณ๊ฒฝ ๊ด๋ฆฌ โ ๋ธ๋์น โ ๋ณํฉ โ ์๊ฒฉ โ ๋๋๋ฆฌ๊ธฐ ํ๋ฆ์ผ๋ก
์ต๋ํ ๋
ผ๋ฆฌ์ ์ผ๋ก ์ ๋ฆฌํ ๋ฌธ์์
๋๋ค.
git config --global user.name "์ด๋ฆ"
git config --global user.email "email@example.com"
git config --list
git init
git clone <URL>
git status
git add ํ์ผ๋ช
git add . # ์ ์ฒด ์คํ
์ด์ง
git commit -m "์ปค๋ฐ ๋ฉ์์ง"
git commit --amend
git branch
git branch feature/login
git switch feature/login
git switch -c feature/login
git branch -d feature/login
git branch -D feature/login
git merge feature/login
git rebase main
git rebase --continue
git rebase --abort
git remote -v
git remote add origin <URL>
git remote remove origin
git push origin main
git push -u origin main
git pull
git pull --rebase
git log
git log --oneline
git log --oneline --graph --all
git checkout -- ํ์ผ๋ช
git reset ํ์ผ๋ช
git reset --soft HEAD~1
git reset --hard HEAD~1
git push -f
git stash
git stash list
git stash apply
git tag v1.0.0
git push origin v1.0.0
[1] ์ค์ (config)
[2] ์ ์ฅ์ ์์ฑ/๋ณต์ (init, clone)
[3] ์ํ ํ์ธ (status)
[4] ์คํ
์ด์ง (add)
[5] ์ปค๋ฐ (commit)
[6] ๋ธ๋์น (branch, switch)
[7] ๋ณํฉ & ๋ฆฌ๋ฒ ์ด์ค (merge, rebase)
[8] ์๊ฒฉ ์ ์ฅ์ ๊ด๋ฆฌ (remote)
[9] push/pull
[10] ๋ก๊ทธ (log)
[11] ๋๋๋ฆฌ๊ธฐ (reset, checkout)
[12] stash
[13] tag