-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitignore
53 lines (44 loc) · 1.46 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
# ===============================================================
# .gitignore for WordPress
# based on https://gist.github.com/salcode/b515f520d3f8207ecd04
# All files are ignored by default.
# Individual files and directories must be explicitly whitelisted
# ---------------------------------------------------------------
# ignore everything in the webroot except wp-content
# ---------------------------------------------------------------
/*
!wp-content/
# ===============================================================
# ignore everything in wp-content except "plugins" and "themes"
# ---------------------------------------------------------------
wp-content/*
!wp-content/plugins/
!wp-content/themes/
# ===============================================================
# ignore all plugins and themes unless whitelisted below
# ---------------------------------------------------------------
wp-content/plugins/*
wp-content/themes/*
# ===============================================================
# ignore specific files or extensions anywhere they appear
# ---------------------------------------------------------------
_/
*.js.map
*.css.map
*.log
*.sql
*.zip
.DS_Store
.sass-cache
error_log
build/
cache/
node_modules/
# ===============================================================
# track all whitelisted files and directories below
# ---------------------------------------------------------------
!.gitignore
!README.md
!env.php
!wp-config.php
!wp-content/themes/cranium/