Say I have a folder
/project1/superlong/path/to/the/folder/I/want/to/exclude/in/my/gitignore/file/
and I have that same folder in several projects, but each project have a different first folder in that superlong path.
Let me show you what I'm talking about:
/project1/superlong/path/to/the/folder/I/want/to/exclude/in/my/gitignore/file/
/project2/superlong/path/to/the/folder/I/want/to/exclude/in/my/gitignore/file/
/project3/superlong/path/to/the/folder/I/want/to/exclude/in/my/gitignore/file/
etc
So in my .gitignore I basically want a singel simple line, like this - with only the two last folder that I know will always be unique in the entire folder structure:
gitignore/file/
I've tried that in my .gitignore file but it doesn't work. Am I missing an asterisk or something? I've consulted the manual pages but that manual is super not intuitive with superbad examples.
Update: Apparently the current version of GitHub for Windows uses an older version of git that lacks support for **
. See comments below for more info.