|

WordPress and .gitignore

Updates have been added after the jump!

In the coming weeks I’ll likely put a lot of my own personal code (as in, not code people pay me to write) in public repos on Github. A lot of my work is WordPress related so I’ll make a local repo at the root of some WordPress install as to not complicate things. In order to make sure I don’t put up something unintentionally (like say, my wp-config.php file), I’ve created a more thorough .gitignore than what I have seen from automatic generators. If you’re interested, I put it into a Github Gist, so you can just copy and paste it. If you think I’m missing something or am wrongfully excluding something, leave a comment on the gist!

Github Gist: wordpress-ignore

Updates

I’ve already gotten a few comments on this! Thanks to Colin for adding his comment to the gist on how he’d do this. You can read it here.

I also had a conversation on Twitter this morning that clarifies why I did it this way. Read that here or click through on the tweet below.

Similar Posts

  • New way to comment!

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website!Dude to the massive amounts of spam that I just got today (over ~50 messages in a few hours), I installed…

  • |

    iPad Demo Thoughts

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website! I played with an iPad on display at Best Buy today, and I’ve got to say, I don’t hate it….

  • |

    I Bought, and Kept, the Soundcore Sleep A20 Earbuds by Anker

    Back in January, I wrote about how I Bought, and Returned, the Ozlo Sleepbuds. I was excited to try a pair of headphones specifically made for sleep, as my AirPods Pro usually hurt my ears (I’m a side sleeper) and fell out. The TL;DR of that post is that they are an incredibly disappointing product…

  • |

    Why 2013 was a Great Year for Tech

    I read a rather annoying article last week about why 2013 was a bad year for tech. I felt was lazily written; the main reason is it only highlighted the major news stories, didn’t add any analysis, and didn’t mention any of the good to go along with the bad. It was a very one-sided…

  • Quick Tip: Check to See if a Slug Exists in WordPress

    Recently I was doing some work where I was importing RSS entries into a Custom Post Type in WordPress. Since there were no common IDs between the feed and WordPress, to prevent duplicate entries I tried comparing titles. This also proved to be an issue as titles aren’t always unique, and they weren’t in this…