1.git add . 文件撤回命令 // 先git status 找到文件路径 git rm --cached <file> 2. git commit -m 本地提交的撤回命令 git reset HEAD~