Documentation

Ignored files

WP Migrate allows you to use patterns to match theme, plugin, and media files that should be excluded from a migration. The pattern format loosely matches .gitignore or ‘glob’ syntax. Patterns are processed in order and are separated by a newline.

By default .DS_Store (a Mac system file) and .git are listed as patterns, but these can be removed.

Examples

.css would ignore all css files, but /assets//.css would ignore all css files in the assets and sub folders.

Negate a pattern

Like .gitignore patterns, the ! character negates a pattern. For example, if you want to exclude all css files except for those in the assets directory, you would use the following pattern:

*.css
!**/assets/**/*.css