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

Development Tools Git Basics Working With Remote Repositories Working With Remotes

Timothy coxon
Timothy coxon
18,405 Points

Git on Apache

Not really a question.. Having completed this section the one thing that seemed to be missing for me was how to set up a repository on Apache that would allow you to work on a local machine and when something was ready to go live allow you to push from your local repository direct to the website.

The following guide runs through how to set this up. http://danielmiessler.com/study/git/

2 Answers

James Barnett
James Barnett
39,199 Points

I'd recommend having both a development and production branch if using git hooks to automatically deploy code.

Timothy coxon
Timothy coxon
18,405 Points

Well the way I've set things up is that I have a XAMPP stack on my computer for running development and remote website I am considering production. Had to work out .gitignore to deal with cache, logs and configs but everything is looking good.

wow, I've got a lot to learn