How should my local Git workflow look?
I’m using it to develop some software that will run on a local server. I’d also like to use this server as the git repo host.
So far I’ve initialized a new repo on the server using –bare and pushed my current code to it.
How do I checkout that code to a directory on the server (i.e. /var/www/)?
I gather I should create a development branch, which I then get using git pull on my development machine, then create a release branch from the development branch when I’m nearing completion of a certain set of features. This release branch will then be merged with the master (live/production) branch – as per the workflow described here.
My Main question (above) is: How do I checkout code from my bare git repo to my live directory on my server?
For example