Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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 

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.2k users

Browse Categories

...