如果希望服务器上版本完全覆盖本地修改,使用如下命令回退并更新: git reset --hardgit pull 转载于:https://www.cnblogs.com/bigshow1949/p/6564135.html