Skip to content

Instantly share code, notes, and snippets.

@iso100 iso100/.gitignore
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

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

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

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
You can’t perform that action at this time.