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

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

猜你喜欢

转载自blog.csdn.net/sally18/article/details/84323157