gitignore

Created by http://www.gitignore.io

Drupal

ignore configuration files that may contain sensitive information.

1
sites/*/*settings*.php

ignore paths that contain generated content.

1
2
3
files/
sites/*/files
sites/*/private

Ignore default text files

1
2
3
4
5
6
7
8
9
10
11
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 )

1
2
3
4
5
6
7
8
9
10
11
12
13
14
.htaccess
web.config
authorize.php
cron.php
index.php
install.php
update.php
xmlrpc.php
/includes
/misc
/modules
/profiles
/scripts
/themes

some tmp file

1
2
3
4
5
6
7
8
*~
*.*~
*.lock
*.DS_Store
*.swp
*.out
*.swo
**git config --global core.excludesfile ~/.gitignore**