Last active
August 29, 2015 13:56
-
-
Save iso100/9251945 to your computer and use it in GitHub Desktop.
Better Statamic .gitignore rules
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
# Statamic files # | |
###################### | |
_cache/* | |
!_cache/index.html | |
_logs/* | |
!_logs/index.html |
I think line 5 is supposed to reference _cache. But I like it! I'll add it to our sample one.
Ooh, you're right.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code will ensure that the _cache and _logs folders are added to .git but without any contents. This ensures smooth sailing when deploying directly from Git.