I’ve already created two repositories – a local(on my machine) and a remote (from a live server). The remote one is a bare repository. The files are all HTML files.
Now my question is, how can I use those files I pushed to the remote one so that they may be accessible through the web? Should I create another repository from the live server and pull that one from a bare repository? Or will symlink work for this?
I was able to solve my issue by cloning my remote repo.
e.g.
my remote repo is located in
so inside my
I did
git clone /home/user/repo/mywebsite.git .Then if I push to my remote repo which is
/home/user/repo/mywebsite.git,I’ll just do
git pullin/var/www/mywebsiteI hope this will help those having same issue as me because git-daemon didn’t work well for me.