git强制覆盖本地更新

git fetch --all   //只是下载远程内容,不做任何合并
git reset --hard origin/master    //把HEAD指向刚下载的最新版本

猜你喜欢

转载自halfsking.iteye.com/blog/2400251