SyntaxFix
Write A Post
Hire A Developer
Questions
It is possible to use patterns in a .gitignore file. See the gitignore man page. The pattern */target/* should ignore any directory named target and anything under it. Or you may try */target/** to ignore everything under target.
.gitignore
*/target/*
*/target/**