git 强制拉取更新为仓库最新内容

it2025-09-06  3

方法一

git fetch --all git reset --hard origin/develop (develop为分支名称或master) git pull (可不写)

转载自:https://www.cnblogs.com/imfx/p/10862556.html

方法二 放弃本地修改,直接覆盖

git reset --hard git pull
最新回复(0)