git 명령어는 이 정도로만 알아도 중박은 친다

746바이트

git status

git add .

git add -p

git commit -m 'message'

git commit -m 'message' -m 'detailed message'

git commit --amend

git commit --no-edit --amend

git push

git push -u origin/branch-name

git push -f

git push HEAD:origin/main

git stash

git stash -m 'message'

git stash pop

git stash list

git stash show

git stash show -p 0

git stash apply

git reset

git reset --soft HEAD~

git checkout .

git log --oneline -5

git diff HEAD

git diff HEAD~..HEAD

git pull

git pull --rebase

git pull --no-ff

git clean -ndfx

git remote

git remote -v

git remote add upstream https://github.com/foo/bar

git remote remove upstream

git revert HEAD~~~

git restore ./path