Intellipaat Back

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


Browse Categories