example.gitignore 1.47 KB
Newer Older
1 2 3 4 5
# This file contains default .gitignore rules. To use it, copy it to .gitignore,
# and it will cause files like your settings.php and user-uploaded files to be
# excluded from Git version control. This is a common strategy to avoid
# accidentally including private information in public repositories and patch
# files.
6
#
7 8
# Because .gitignore can be specific to your site, this file has a different
# name; updating Drupal core will not override your custom .gitignore file.
9

10 11
# Ignore core when managing all of a project's dependencies with Composer
# including Drupal core.
12
# core
13

14 15 16 17 18
# Ignore dependencies that are managed with Composer.
# Generally you should only ignore the root vendor directory. It's important
# that core/assets/vendor and any other vendor directories within contrib or
# custom module, theme, etc., are not ignored unless you purposely do so.
/vendor/
19

20 21
# Ignore configuration files that may contain sensitive information.
sites/*/settings*.php
22
sites/*/services*.yml
23 24 25 26 27

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

28 29 30
# Ignore SimpleTest multi-site environment.
sites/simpletest

31 32 33 34 35 36 37 38 39
# If you prefer to store your .gitignore file in the sites/ folder, comment
# or delete the previous settings and uncomment the following ones, instead.

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

# Ignore paths that contain user-generated content.
# */files
# */private
40 41 42

# Ignore SimpleTest multi-site environment.
# simpletest