I am just getting started with git, although I've learned a lot over the past week. I am looking for suggestions on how to best implement this workflow.
I currently host my projects on a shared hosting account.
For each project I setup a "preview" subdomain for testing/client approval along with the live site.
These folders are accessible in my account root, for example
What I would like to be able to do is:
- Setup my projects in git using my hosting account to host my repositories. I have ssh access to my account and have already compiled git and am capable of making and accessing repositories.
- Make branches for new features, update the changes to my "preview" subdomain for testing/approval, and once approved be able to merge the branch and update the live site... Rinse and repeat...
I've been trying a lot of different things, making clones and using hooks, but can't seem to get a clean solution.
I appreciate any suggestions.