git 拉取覆盖本地

想要拉远端强制覆盖本地,试过git pull --force ,还是会提示需要commit

下面的方法可以强制覆盖,留着以免忘记

git fetch --all

git reset --hard origin/master

git pull

猜你喜欢

转载自blog.csdn.net/a314753967/article/details/80372661
今日推荐