.gitignore in Drupal Core

Included by default in Drupal Core is a .gitignore file. This file lives in the root folder. So why is it worth noting?

If you are using Git for version control, then this .gitignore file sets up recommended directories and files that should NOT be under version control. When we take a look at this file, we see the following:

# Ignore configuration files that may contain sensitive information.
sites/*/settings*.php

# Ignore paths that contain user-generated content.
sites/*/files
sites/*/private

These small touches are what make the Drupal system so vibrant.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.