Git 命令速查
NEW常用 Git 命令分类速查。纯前端本地处理,免费在线使用。
状态
git status暂存
git add -p提交
git commit -m "msg"改写最近提交
git commit --amend --no-edit拉代码
git pull --rebase推送
git push -u origin HEAD新建分支
git switch -c feature/x暂存切换
git stash -u && git stash pop查看差异
git diff日志图
git log --oneline --graph -20找回删除
git reflog拣选提交
git cherry-pick <sha>