Skip to content

Instantly share code, notes, and snippets.

@jbudziak
Created December 5, 2012 15:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jbudziak/4216850 to your computer and use it in GitHub Desktop.
Save jbudziak/4216850 to your computer and use it in GitHub Desktop.
gitignore for Drupal 7 install
# Ignore configuration files that may contain sensitive information.
sites/*/*settings*.php
# Ignore paths that contain generated content.
cache/
files/
sites/*/files
sites/*/private
# Ignore default text files
.htaccess
robots.txt
/CHANGELOG.txt
/COPYRIGHT.txt
/INSTALL*.txt
/LICENSE.txt
/MAINTAINERS.txt
/UPGRADE.txt
/README.txt
sites/all/README.txt
sites/all/modules/README.txt
sites/all/themes/README.txt
# Ignore everything but the "sites" folder ( for non core developer )
# web.config
# authorize.php
# cron.php
# index.php
# install.php
# update.php
# xmlrpc.php
# /includes
# /misc
# /modules
# /profiles
# /scripts
# /themes
@opi
Copy link

opi commented Apr 30, 2013

We should ignore OS & IDE specific files:

OS generated files

.DS_Store*
ehthumbs.db
Icon?
Thumbs.db

IDE Files

*.sublime-project
*.sublime-workspace
*.komodoproject

and why not ignore .htpasswd too !!

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