How to deploy code using git
- by luckytaxi
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."