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

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.

I developed a Vue.js starter kit that you can order today

Order Vue.js starter kit

Write a Comment