well, you have to agree that is not a common package name (at least for those who use maven) but if it have is muuuch better to include a .gitignore inside the mymodule package containing this: !target/

there are people that just do: "git add ." and that is dangerous when not ignoring output directories. Once, I ended with a ultra big git folder size just because binaries files that was wrongly commited...