【Git】Git pull 强制覆盖本地文件

xiaoxiao2021-02-28  114

git fetch --all   git reset --hard origin/master  git pull

备注:

git fetch 只是下载远程的库的内容,不做任何的合并 

git reset 把HEAD指向刚刚下载的最新的版本

转载请注明原文地址: https://www.6miu.com/read-33508.html

最新回复(0)