Back
I have a local Git repository. I would like to make it available on a remote, ssh-enabled, server. How do I do this?
you might have a bare repository on the remote side,
git init --bare
add the remote side as the push/pull tracker for your local repository
git remote add origin URL
and then locally you just say
git push origin master
Now you can pull any other repository from the remote repository.
Reference: https://git-scm.com/docs/git-init#Documentation/git-init.txt---bare
31k questions
32.8k answers
501 comments
693 users