常用 Git 命令速查表,可搜索、复制
git init
git clone <url>
git status
git add <file>
git add .
git commit -m "msg"
git commit --amend
git push
git push --force
git pull
git fetch
git branch
git branch -a
git checkout -b <name>
git checkout <branch>
git switch <branch>
git merge <branch>
git rebase <branch>
git log
git log --oneline
git diff
git diff --cached
git stash
git stash pop
git reset --hard HEAD
git revert <commit>
git remote -v
git tag
git remote add origin <url>
git show <hash>
所有处理均在浏览器本地完成,数据不会上传服务器;可直接收藏本页,下次打开即用。