提交代码一般流程所使用的的命令: git add . git commit -m "功能备注" git push 代码就提交到远程代码仓库了。 执行完commit后,想撤回commit, 执行如下命令: git reset --soft HEAD^ 不删除工作空间改动代码,撤销commit,不撤