git add -f

git add -f 添加已被 .gitignore 忽略的文件/文件夹

原文地址:https://www.cnblogs.com/liaozt/p/6202173.html