Git-忽略冲突,强制更新代码并覆盖本地代码

git fetch --all
git reset --hard origin/master
git pull //可以省略

git

图片来源: http://www.ruanyifeng.com/blog/2014/06/git_remote.html

关于远程操作命令的详细用法可以参见上文。

猜你喜欢

转载自blog.csdn.net/qq_17753903/article/details/85009846