Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools Git Basics Working With Remote Repositories Working With Remotes

Timothy coxon
Timothy coxon
18,404 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,404 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