My WordPress .gitignore config file

in Code Write a comment

In this article, I’ll share my WordPress .gitignore configuration file. I’ve previously shared my Vue.js .gitignore file.

# ignore all files starting with .

# ignore certain files

# track this file .gitignore (i.e. do NOT ignore it)

# track .editorconfig file (i.e. do NOT ignore it)

# track in the root (i.e. do NOT ignore it)

# ignore all files that start with ~

# ignore OS generated files

# ignore log files and databases

# ignore compiled files

# ignore packaged files

# ignore everything in the "wp-content" directory, except:
# "mu-plugins" directory
# "plugins" directory
# "themes" directory

# ignore specific themes

# ignore node/grunt dependency directories

Hi, I'm Renat 👋


If you find this post useful, please let me know in the comments below. 
Renat Galyamov

Want to share this with your friends?

PS: make sure you check other WordPress tutorials, e.g. content type related post excerpt in WordPressload Google Fonts via functions.php in WordPress and download my plugin that improves your WordPress SEO & Performance.

A collection of UI components for
Bootstrap 4/5 and Vue.js

Get now

Write a Comment