问题阐述 代码不小心添加到.gitignore,执行了add to .gitignore。现在需要提交到git上。 解决方案 找到.gitignore文件,删除### VS Code ###下误添加的代码路径即可。