回退到上一版本 git reset --hard head 未提交的修改 放入暂存区 – pop还原 git stash git stash pop 删除node_modules npm install rimraf -g //下载 rimraf rimraf node_modules // 删除 node_modules 删除远程分支 git push origin --delete 分支名