Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k points)

I have a local Git repository. I would like to make it available on a remote, ssh-enabled, server. How do I do this?

1 Answer

0 votes
by (50.2k points)

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 

Browse Categories

...