How to deploy code using git

Posted by luckytaxi on Stack Overflow See other posts from Stack Overflow or by luckytaxi
Published on 2010-04-01T03:16:00Z Indexed on 2010/04/01 3:23 UTC
Read the original article Hit count: 419

Filed under:

I have a bare repository initialize on my webserver. I code on my workstation and I'm able to push/pull/commit changes to it. Now, I want to deploy this code on the webserver but into my apache directory (/var/www/html). If I wanted to track the changes (only pull no push) from this directory, should I clone the repo first?

This way I can make changes locally, then commit and push to "central repo" and then pull from the documentroot folder to see the changes in "prod."

© Stack Overflow or respective owner

Related posts about git