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.


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

28.4k questions

29.7k answers


94.6k users

Browse Categories