改动过.gitignore文件之后,在repo的根目录下运行:
之后可以进行提交:
配置gitignore后使其生效命令
原文:https://www.cnblogs.com/lxwphp/p/9035635.html