git放弃本地修改,重置为服务端版本

git fetch --all
git reser --hard origin/master

其中最后的master可以修改为其他branch

猜你喜欢

转载自blog.csdn.net/qq1035661353/article/details/80998248