-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitignore
50 lines (40 loc) · 1.3 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
# Exclude these files from the git repo
# Note: the trailing /* is significant. If a directory is excluded, Git will never look
# at the contents of that directory. The pattern dir/ excludes a directory named dir
# and (implicitly) everything under it. The pattern dir/* says nothing about dir itself;
# it just excludes everything under dir. With dir/, Git will never look at anything under
# dir, and thus will never apply any of the “un-exclude” patterns to anything under dir.
# With dir/*, Git will process the direct contents of dir, giving other patterns a chance
# to un-exclude some bit of the content.
# src http://git-scm.com/docs/gitignore
# Start by excluding everything...
/*
# ...then add back wp-content/
!/wp-content
# Exclude everything under wp-content/
/wp-content/*
# ...then add back the bits we want to track
!/wp-content/plugins
!/wp-content/mu-plugins
!/wp-content/themes
# Finally, add back the files we specifically want to track
!wordpress
!index.php
!wp-config.php
!README.md
!.gitignore
!git-update-wp.sh
# Ignore all files with a password
wp-config-*.php
# Ignore files generated automatically by individual installations
.htaccess
*.log
sitemap.*
# Ignore Hidden system files and editor footprints
*.DS_Store
*[Tt]humbs.db
*.Trashes
**/~*
**/config.codekit
.idea/
**/config.codekit3