drupal的.gitignore文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Ignore configuration files that may contain sensitive information.
#sites/*/*settings*.php
settings.php
default.settings.php
*~
*.*~
*.lock
*.DS_Store
*.swp
*.out
*.swo
# Ignore paths that contain generated content.
cache/
files/
sites/*/files
sites/*/private
files/.htaccess
# 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

把该文件放在/root/目录下。执行以下命令设置到全局选项里。
git config –global core.excludesfile /root/.gitignore

script>