修改.gitignore文件可以设置需要忽略管理的文件和文件夹 # :表示注释 * :匹配0个或多个字符 ? :匹配一个字符 ! :表示不忽略 **/modesl/ : 表示忽略所有models文件夹 test.txt :表示忽略该文件