Last active
September 21, 2020 10:38
-
-
Save jeromecoupe/5237810 to your computer and use it in GitHub Desktop.
craftcms .gitignore (craft 3)
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
# Craft | |
# -------------------------- | |
/.env | |
/vendor/ | |
# files generated by build process | |
/web/dist/ | |
# user uplodaded files | |
/web/uploads/ | |
# DB Dumps | |
# -------------------------- | |
/db_dumps/ | |
# node modules | |
# -------------------------- | |
/node_modules/ | |
# misc | |
# -------------------------- | |
.idea | |
.DS_Store |
I think you may be able to ignore the entire runtime folder.
craft/storage/runtime/*
I've also added the backups folder as we keep backups elsewhere so no real need to have them in the repo too:
craft/storage/backups/*
Thanks guys! Updated
@aaron: I keep .gitignore out because it is a git-specific file and, as such, I see it as not belonging in the repo itself (everybody has its own copy). That being said, now that I think about it after your comment, it makes sense to keep it in when working teams.
Updated for Craft 3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Out of curiosity though, why would you want to ignore the .gitignore file? Couldn't someone then clone the repo (without the .gitignore) and be able to commit a .DS_Store file to it? I've never done this so I'm just wondering.