git获取远程代码,让远程代码直接覆盖本地代码

git fetch --all //只是下载代码到本地,不进行合并操做 git reset --hard origin/master //把HEAD指向最新下载的版本
相关文章
相关标签/搜索