Skip to content

Instantly share code, notes, and snippets.

@iso100
Last active August 29, 2015 13:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iso100/9251945 to your computer and use it in GitHub Desktop.
Save iso100/9251945 to your computer and use it in GitHub Desktop.
Better Statamic .gitignore rules
# Statamic files #
######################
_cache/*
!_cache/index.html
_logs/*
!_logs/index.html
@iso100
Copy link
Author

iso100 commented Feb 27, 2014

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.

@fredleblanc
Copy link

I think line 5 is supposed to reference _cache. But I like it! I'll add it to our sample one.

@iso100
Copy link
Author

iso100 commented Feb 27, 2014

Ooh, you're right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment