美文网首页
git用远程代码强制覆盖本地代码

git用远程代码强制覆盖本地代码

作者: DO_3892 | 来源:发表于2019-08-28 11:11 被阅读0次

git强制覆盖:

    git fetch --all

    git reset --hard origin/master

    git pull

git强制覆盖本地命令(单条执行):

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

————————————————

版权声明:本文为CSDN博主「A-fish」的原创文章,遵循CC 4.0 by-sa版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/sally18/article/details/84323157

相关文章

网友评论

      本文标题:git用远程代码强制覆盖本地代码

      本文链接:https://www.haomeiwen.com/subject/qhrpectx.html