Skip to content

Instantly share code, notes, and snippets.

@iso100
Last active Aug 29, 2015
Embed
What would you like to do?
Better Statamic .gitignore rules
# Statamic files #
######################
_cache/*
!_cache/index.html
_logs/*
!_logs/index.html
@iso100

This comment has been minimized.

Copy link
Owner Author

@iso100 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

This comment has been minimized.

Copy link

@fredleblanc fredleblanc commented Feb 27, 2014

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

@iso100

This comment has been minimized.

Copy link
Owner Author

@iso100 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