问题:

VSCode 用git 拉取代码,提示:在签出前,请清理存储库工作树。

解决方法:

1. 手动解决:

①git stash 先将本地修改存储起来
②git pull 拉取远程
③git stash pop 还原暂存内容

2. 放弃本地修改,直接覆盖

①git reset --hard
②git pull

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐