-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitignore-template_wordpress-oxygen-woo.txt
More file actions
122 lines (102 loc) · 3.01 KB
/
gitignore-template_wordpress-oxygen-woo.txt
File metadata and controls
122 lines (102 loc) · 3.01 KB
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
# HOW TO IMPLEMENT THIS FILE WITH YOUR PROJECT:
# 1. Rename this file to .gitignore
# 2. Place this file in your `public` root of your WordPress site BEFORE you initialize git: yourProjectName/app/public
# 3. Do a search and replace for all instances of `yourProjectName` in this file.
# 4. Search for any comments marked `###` for special notes.
# 5. Add any other files/directories to this document that you DON'T want tracked.
# 6. Remove any other files/directories from this template that you DO want tracked.
# 7. Delete this comment section if you'd like, update the date below, and save.
# ─────────────────────────────────────────────
# Last updated: 05 JUN 2025
# For WordPress sites built with Oxygen & WooCommerce
# Tracks only custom code (plugins, themes, & Oxygen exports/uploads)
# Excludes files & directories for:
# backup, cache, config, dependency, editor, logs, OS, remote, system, temp
# Excludes WordPress core
# ─────────────────────────────────────────────
# Cache, logs, temp, and backup files
*.log
*.sql
*.zip
*.tar.gz
*.bak
*.tmp
wp-content/cache/**
wp-content/debug.log
# Dependency directories
node_modules/**
vendor/**
# System / editor / remote / OS files
._*
.apdisk
.AppleDB
.AppleDesktop
.AppleDouble
.com.apple.timemachine.donotpresent
.DocumentRevisions-V100
.DS_Store
.fseventsd
.idea/**
.LSOverride
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.vscode/**
Desktop.ini
Network Trash Folder
Temporary Items
Thumbs.db
# (Optional) Local by Flywheel / WP Engine config — ignore if Git repo is in site root
sql/**
conf/**
logs/**
local-site.json
# ─────────────────────────────────────────────
# WordPress | Oxygen & WooCommerce
# ─────────────────────────────────────────────
# Sensitive configuration files
.env*
.htaccess
wp-config.php
wp-config-local.php
wp-config-production.php
# WordPress core directories
wp-admin/*
wp-content/languages/*
wp-content/plugins/*
wp-content/themes/*
wp-content/upgrade/*
wp-content/upgrade-temp-backup/*
wp-content/uploads/*
wp-includes/*
### DON'T ignore custom-made plugins
!wp-content/plugins/
!wp-content/plugins/yourProjectName-core/
!wp-content/plugins/yourProjectName-core/**
### DON'T ignore custom-made themes
!wp-content/themes/
!wp-content/themes/yourProjectName/
!wp-content/themes/yourProjectName/**
# DON'T ignore Oxygen Builder uploads
!wp-content/uploads/
!wp-content/uploads/oxygen/
!wp-content/uploads/oxygen/**
# WordPress root/core files
index.php
license.txt
local-xdebuginfo.php
readme.html
wp-activate.php
wp-blog-header.php
wp-comments-post.php
wp-config-sample.php
wp-cron.php
wp-links-opml.php
wp-load.php
wp-login.php
wp-mail.php
wp-settings.php
wp-signup.php
wp-trackback.php
xmlrpc.php