在git终端到自己项目的路径上,或者用idea的terminal上执行: git stash 执行完后 再执行 git pull 下拉代码后 再执行 git stash pop 如果解决了,请点赞留言,让更多人知道!!