git pull” 强制覆盖本地文件 放弃本地修改,使用服务器代码覆盖本地的Git命令如下: 1 $ git fetch --all 2 $ git reset --hard origin/master 3 $ git pull