git .gitignore文件

.gitignore !

/*   忽略所有的文件

!/pages/  添加根目录下的所有文件被跟踪

原文地址:https://www.cnblogs.com/hill-foryou/p/9232770.html