Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Alex Houg
Alex Houg
6,292 Points

Develop Multiple WordPress Websites and Git Usage

Hello everyone,

I was wondering how I should go about developing multiple websites in WordPress and using Git as the version control system, from what I learned in the module Git makes sense, but I don't know how it handles different projects in my development folder.

Also, do I backup the database using the MySQL workbench and Git that as well?

I want to be able to develop on a desktop or laptop if I have to travel or not for my job.

Sorry this is long-winded. Let me know about your workflow.

Thanks.

1 Answer

Kevin Niedermayr
Kevin Niedermayr
3,072 Points

Hey Alex,

what do you mean with "multiple websites in WordPress", do you mean multiple WordPress installations with one backend or do you mean different templates?

Git only tracks files/folders you actually add via "git add" if you go to a specific folder like "/localhost/wordpress/wp-content/themes/whateveryourthemeis" you can add every file in that folder into your git repository.

Usually you can track everything you want into git, but the most common use I've seen so far is just coding, maybe also some MySQL stuff but not the whole database.

Hope this helps you a little bit.

Best Kevin