git 远程 强制合并本地

反过来,如果希望用代码库中的文件完全覆盖本地工作版本. 方法如下:

git reset --hard

git pull

原文地址:https://www.cnblogs.com/freefei/p/5420105.html