-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitignore
146 lines (130 loc) · 3.42 KB
/
.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20160309
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore
# to download this file
#
# By default all files are ignored. You'll need to whitelist
# any mu-plugins, plugins, or themes you want to include in the repo.
#
# To ignore uncommitted changes in a file that is already tracked, use
# git update-index --assume-unchanged
#
# To stop tracking a file that is currently tracked, use
# git rm --cached
#
# Change Log:
# 20160309 Added favicon files as whitelisted files
# 20150302 Added composer.json as a whitelisted file
# 20150227 Created as fork of https://gist.github.com/salcode/9940509,
# this version ignores all files by default
# -----------------------------------------------------------------
# ignore everything in the root except the "wp-content" directory.
/*
!wp-content/
# ignore everything in the "wp-content" directory, except:
# mu-plugins, plugins, and themes directories
wp-content/*
wp-*.*
xmlrpc.php
!wp-content/wp-config.php
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/
# ignore all mu-plugins, plugins, and themes
# unless explicitly whitelisted at the end of this file
wp-content/mu-plugins/*
wp-content/plugins/*
#wp-content/themes/*
#wp-content/uploads/*
wp-content/themes/twentyfifteen/*
wp-content/themes/twentyseventeen/*
wp-content/themes/twentysixteen/*
wp-content/themes/reshaemo/tmp/*
wp-content/plugins/hello.php
wp-content/themes/reshaemo/LICENSE
wp-content/themes/reshaemo/bower-sample.json_
wp-content/themes/reshaemo/owlcarousel-old/*
wp-content/themes/reshaemo/tmp/*
wp-content/themes/reshaemo/bower_components-load-not-work/*
wp-content/themes/reshaemo/js-old/*
wp-content/themes/reshaemo/owlcarousel-old/*
# ignore all files starting with . or ~
.*
~*
# ignore all files ending with ~
*.~
# ignore node dependency directories (used by gulp)
node_modules/
# ignore OS generated files
ehthumbs.db
Thumbs.db
# ignore Editor files
*.sublime-project
*.sublime-workspace
*.komodoproject
# ignore log files and databases
*.log
*.sql
*.sqlite
# ignore compiled files
*.com
*.class
*.dll
*.exe
*.o
*.so
# ignore packaged files
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# -------------------------
# BEGIN Whitelisted Files
# -------------------------
# track these files, if they exist
!.gitignore
!.editorconfig
!README.md
!CHANGELOG.md
!composer.json
!gulpfile.js
!package.json
!bower.json
!style.css
!*.php
# track favicon files, if they exist
!android-chrome-*.png
!apple-touch-icon*.png
!browserconfig.xml
!favicon*.png
!favicon*.ico
!manifest.json
!mstile-*.png
!safari-pinned-tab.svg
# track these mu-plugins, plugins, and themes
# add your own entries here
#!wp-content/mu-plugins/example-mu-plugin/
!wp-content/plugins/functionsphp.php
!wp-content/themes/reshaemo/*.php
!wp-content/themes/reshaemo/sass/*.scss
!wp-content/themes/reshaemo/images/**/*
!wp-content/themes/reshaemo/shortcodes/*.php
!wp-content/themes/reshaemo/functions/
!wp-content/themes/reshaemo/inc/
!wp-content/themes/reshaemo/js/
!wp-content/themes/reshaemo/js/src/
!wp-content/themes/reshaemo/template-parts/
!wp-content/themes/reshaemo/style.css
!wp-content/themes/reshaemo/package.json
!wp-content/themes/reshaemo/gulpfile.js
!wp-content/themes/reshaemo/fonts/
!wp-content/themes/reshaemo/bower.json
!wp-content/themes/reshaemo/README.md
!README.md