blue-sky blue-sky - 5 months ago 46
Git Question

Ignoring target dir in sub projects

I've project structure like so :


To ignore the target folder in each dir is this correct :

.gitignore contents :



/*/target will match the directory structure you specified.

If you want to ignore every target directory deeper in your directory structure you can use the line /**/target.

This will ignore: