Git强制覆盖本地已修改代码

在部署时有时会须要用到,在此记录git

$ git fetch --all && git reset --hard origin/master && git pull
相关文章
相关标签/搜索