on local host,
you can clone repository from remote server $ git clone mylogin@myserver.com:myapp.git or add 'remote' to existing copy of repository $ git remote add origin mylogin@myserver.com:myapp.git
add to .git/config
[branch "master"] remote = origin merge = refs/heads/masternow you can simply git push and git pull.
exporting a git repository via http $ cd proj.git
$ git --bare update-server-info
$ chmod a+x hooks/post-update