So I want to have a git repo on my server which holds my website, one I can push to and users can see from the domain name.
I ssh'd into my server and did:
git --bare init
This was located in the file structure /public_html/project
. Then on my local repo I did:
git init
added the remote and did an initial commit and pushed up to the server.
When I navigate to the server (staging.com/public_html/project
) I just see the git files, where are my actual website files which the server can render?
Or is this a poor understanding of GIT?