本篇文章记录一下Git本地库删除文件后,从远程库重新获取文件 的方法,方便 日后查阅 git 强行pull并覆盖本地文件: git fetch –all git reset –hard origin/master git pull