Browse Source

不能直接忽略所有名为build的文件夹,因为源代码目录中含也有名为build的文件夹,

cj 6 years ago
parent
commit
f7a0c94c16
1 changed files with 6 additions and 2 deletions
  1. 6 2
      .gitignore

+ 6 - 2
.gitignore

@@ -27,7 +27,7 @@ target/
 
 ### NetBeans ###
 nbproject/private/
-build/
+build/*
 nbbuild/
 dist/
 nbdist/
@@ -36,4 +36,8 @@ nbdist/
 ######################################################################
 # Others
 *.log
-*.xml.versionsBackup
+*.xml.versionsBackup
+
+!*/build/*.java
+!*/build/*.html
+!*/build/*.xml