๐ GIT ์ฌ์ฉ๋ฒ์ ๋ฐฐ์ ๋ด ์๋ค ๐ฅ
git --version
git config --global user.name "์ด๋ฆ"
git config --global user.email "์ด๋ฉ์ผ"
git config --global --edit"
git config --global core.autocrlf input
(Mac)git config --global core.autocrlf true
(Window)git config --global core.editor "xed --wait"
(Xcode)git config --global core.editor "code --wait"
(Visual Studio Code)git init
rm -rf .git
git add ํ์ผ๋ช
git add .
git rm --cached ํ์ผ๋ช
echo ํ์ผ๋ช
> .gitignore
echo *.log > .gitignore
git status
git status -s
git diff
git diff --staged
git difftool
[diff] tool = vscode
[difftool "vscode"] cmd = code --wait --diff $LOCAL $REMOTE
git commit -m "์ปค๋ฐ ๋ฉ์์ง"
git log
git log --oneline --graph --all
git checkout ํด์์ฝ๋
git config --global alias.๋ช
๋ น์ด "๋จ์ถํ ๋ช
๋ น์ด"
git log --pretty=๋ช
๋ น์ด
git log ๋ช
๋ น์ด
git log -์ซ์
git log --before="๋ ์ง"
git log --author="์ด๋ฆ"
git log --grep="์ปค๋ฐ ๋ฉ์์ง"
git log -S "ํ์ผ๋ช
"
git commit --amend
git restore -- ํ์ผ๋ช
git tag
git tag -l ํ๊ทธ๋ช
git tag -d ํ๊ทธ๋ช
git tag ํ๊ทธ๋ช
git tag ํ๊ทธ๋ช
ํด์์ฝ๋ -a -m "ํ๊ทธ ๋ฉ์์ง"
git show ํด์์ฝ๋
git show head --name-only
git branch
git branch -v
git branch -all
git branch --merged
git branch --no-merged
git branch ๋ธ๋์น๋ช
git switch -C ๋ธ๋์น๋ช
git branch --move ๋ธ๋์น๋ช
๋ฐ๊ฟ๋ธ๋์น๋ช
git branch -d ๋ธ๋์น๋ช
git merge ๋ธ๋์น๋ช
git merge --no-ff
git merge --abort
git merge --continue
git mergetool
[merge] tool = vscode
[mergetool "vscode"] cmd = code --wait $MERGED
git rebase ๋ธ๋์น๋ช
git rebase ๋ธ๋์น๋ช
๋ธ๋์น๋ช
git rebase --onto ๋ธ๋์น๋ช
๋ธ๋์น๋ช
๋ธ๋์น๋ช
git rebase --abort
git rebase --continue
git cherry-pick ํด์์ฝ๋
git stash push -m "์คํ์ ๋ฉ์์ง"
git stash
git stash -u
git stash --keep-index
git stash list
git stash show ์คํ์
git stash show ์คํ์ --patch
git stach apply ์คํ์
git stash pop ์คํ์
git stash drop ์คํ์
git stash clear
git stash branch ๋ธ๋์น๋ช
git clean
git clean -fd
git clean -x
git clean -d -n
git reset
git reset --soft ํด์์ฝ๋
git reset --hard ํด์์ฝ๋
git restore --source=ํด์์ฝ๋ ํ์ผ๋ช
git revert ํด์์ฝ๋
git reflog
git reflog expire --expire=์๊ฐ --all
git show HEAD@{์ซ์}
git show ๋ธ๋์น๋ช
@{์๊ฐ}
git rebase -i
git rebase --abort
git rebase --continue
git blame ํ์ผ๋ช
git blame -C -L ์ซ์,์ซ์ ํ์ผ๋ช
git bisect start
git bisect good
git bisect bad
git bisect reset
git remote
git remote -v
git remote add origin ์ฃผ์
git remote remove ์ฃผ์
git clone ์ฃผ์
git push
git pull
git fetch
git config --global