blue-sky blue-sky - 6 months ago 51
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: