Have you tried wildcards?
Solution/*/bin/Debug
Solution/*/bin/Release
With version 1.8.2 of git, you can also use the **
wildcard to match any level of subdirectories:
**/bin/Debug/
**/bin/Release/
More Related Contents:
- How do I configure git to ignore some files locally?
- How to tell git to ignore individual lines, i.e. gitignore for specific lines of code [duplicate]
- How to remove files that are listed in the .gitignore but still on the repository?
- How can I make Git "forget" about a file that was tracked, but is now in .gitignore?
- How can I add a blank directory to a Git repository?
- Ignore files that have already been committed to a Git repository [duplicate]
- Make .gitignore ignore everything except a few files
- .gitignore exclude folder but include specific subfolder
- Can I ‘git commit’ a file and ignore its content changes?
- What should be in my .gitignore for an Android Studio project?
- Download a single folder or directory from a GitHub repo
- Global Git ignore
- How to ignore certain files in Git?
- How can I stop .gitignore from appearing in the list of untracked files?
- .gitignore after commit [duplicate]
- How do I add an empty directory to a Git repository?
- Force add despite the .gitignore file
- Git is ignoring files that aren’t in gitignore
- gitignore binary files that have no extension
- Definitive retroactive .gitignore (how to make Git completely/retroactively forget about a file now in .gitignore)
- How to ignore all hidden directories/files recursively in a git repository?
- Is there a way to tell git to only include certain files instead of ignoring certain files?
- How does git handle folder permission?
- git ignore exception
- Why is .gitignore not ignoring my files?
- git ignore all files of a certain type, except those in a specific subfolder
- Git Ignores and Maven targets
- How can I move all git content one-level up in the folder hierarchy?
- gitignore by file size?
- Commit empty folder structure (with git) [duplicate]