Skip to content

Instantly share code, notes, and snippets.

@felixhaeberle
Created May 2, 2018 08:52
Show Gist options
  • Save felixhaeberle/5aa2a9b015295c6388835829ef6a569f to your computer and use it in GitHub Desktop.
Save felixhaeberle/5aa2a9b015295c6388835829ef6a569f to your computer and use it in GitHub Desktop.
Drupal 7.x .gitignore
# Ignore configuration files that may contain sensitive information.
*/sites/*/settings*.php
*/sites/*/*.settings.php
*/sites/local.sites.php
# Ignore paths that contain user-generated content.
*/sites/*/files
*/sites/*/private
# Ignore editor specific files.
nbproject
.idea
# Ignore OS specific files.
.DS_Store
# Ignore SASS cache
.sass-cache
.sass-cache/*
@felixhaeberle
Copy link
Author

This is a basic .gitignore file which works for my projects with Drupal 7.x.
This file has a focus on the main IDE/OS specific files - to exclude them.
Feel free to use or configure for your own. 🎉

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