About
Alex Zuniga is a premium support specialist for the Austin-based, managed WordPress host, WP Engine. He is somewhat new to the tech scene having attended CodeUp’s 2nd cohort in 2014. Immediately upon graduation, he began developing front-end WordPress sites for a local marketing agency, Düable. His tech journey later allowed him to become one of the first eight employees of WP Engine’s San Antonio office in December of 2015. Alex loves finding local libations and hidden eats around town with his wife. Any suggestions are always welcome!
Topic: Git and WordPress: Concise versioning for all developers
WordPress has many moving parts that can be updated at the click of a button through its native tools. Keep your repository up to date by learning how to optimally configure your local .gitignore file. Benefits include: less merge conflicts, greater collaboration between developers and environments and of course, ease for clients and end user experience.
What should you be versioning? Answer: YOUR themes or plugins you develop.
optimizing your gitignore to version only the relevant code per your project, or directories can assist with allowing customers to update other features, such as WordPress Core and plugins that are not designed by your team. Your repository is then more streamlined and focused on code. This also excludes any configuration files that would cause issues between development environments. In the long run, you have less code to review/version and customers have the ease of use to know that only code is being updated for the theme and no potential issue with pushing anything unnecessarily.