Good .gitignore for WordPress

Photo by Paul Morris (@oldskool2016) via Unsplash

Best Practice for Local Install and Version Control
One of the things I didn’t realize when I was getting version control set up (for the first time) was that it makes a lot of sense to combine your version control files and your local install files. Otherwise, you’re more prone to error as you have two versions on your machine.

I recently found a good .gitignore example that I altered for my own use (the main adjustment being to track prefixed plugin directories). I wanted to share that here – especially since I keep losing the link.

Good .gitignore For WordPress