We have git installed on our webserver (via cpanel), but unfortunately no CI- / Deployment-Tools.
Would it be good practice just initialise our repository in
/public_html/ and push our local Dev-branches into the Master-Branch there instead of having an extra repository-directory on the server and 'deploy' the project manually?
Thank you in advance for your replies.
git clone http://yoursite.com/path/to/.gitand download your whole site? If so, that's bad. Really bad. Anyone can get the entire source code history, including names and email addresses of your developers. For this reason alone I would separate code repository from deployment.
.gitis protected by .htaccess.