Git repository on a SSH Server

While git is pretty useful for an individual developer on the local machine itself. Having your git repository in a central location allows you not only to work in teams but work on your project from different computers. The most straight-forward way I found to have a git 'server' is to put the repository on a ssh server. You can use a web host to host your repositories. Setting it up is easier than one would think. On the server create a folder and initialize an empty repository.
git --bare init
On your development machine, you add a remote origin.
git remote add origin
git push origin master
Thats it.

© 2017. All rights reserved.