Created
May 11, 2019 00:18
-
-
Save jsmithdev/8fe5be2bed2c9f41cb3eae96fada64a4 to your computer and use it in GitHub Desktop.
.gitignore for ignoring _most_ files / dirs via stackoverflow.com/q/987142
This file contains 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
# Ignore everything | |
* | |
# But not these files... | |
!.gitignore | |
!script.pl | |
!template.latex | |
# etc... | |
# ...even if they are in subdirectories | |
!*/ | |
# if the files to be tracked are in subdirectories | |
!*/a/b/file1.txt | |
!*/a/b/c/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment