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

git强制覆盖:
    git fetch --all
    git reset --hard origin/master
    git pull
git强制覆盖本地命令(单条执行):
    git fetch --all && git reset --hard origin/master && git pull

原文地址:https://www.cnblogs.com/Mvloveyouforever/p/13279191.html