Git correctly ignores everything in my target folder (maven) except folder "surefire-reports".
My .gitignore:
# Java
*.class
.idea/
# Package Files
*.jar
*.war
*.iml
*.ucls
target/
But files in target\surefire-reports\ still tracked by git. See git status output:
# On branch connectionPane
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: target/surefire-reports/TEST-navalwar.ConsolePlayerTest.xml
# modified: target/surefire-reports/navalwar.ConsolePlayerTest.txt
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# gitstatus.txt
no changes added to commit (use "git add" and/or "git commit -a")
There are other folders and file in target\ but git don't track them!