Created
November 6, 2019 17:25
-
-
Save pingec/222484fa39bffce2935fb1bc4424946b to your computer and use it in GitHub Desktop.
Whitelist .msi files inside subdir of ignored dir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Some trickery in order to ignore everything inside bin except bin/release/*.msi paths (rules 2 & 3 are necessary to force git to crawl release subfolder of bin) | |
# 1. Ignore all files in any bin folder at any subpath | |
**/[Bb]in/* | |
# 2. Unignore bin/release subfolder at any subpath so that git will crawl it | |
!**/[Bb]in/[Rr]elease | |
# 3. Ignore all files inside bin/release subfolder at any subpath | |
**/[Bb]in/[Rr]elease/* | |
# 4. But whitelist .msi files | |
!**/[Bb]in/[Rr]elease/*.msi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
😅