Original Article:
A simple way to create git repository on a server machine connecting via ssh
Situation:
Let’s assume following situation:
- We have a folder ˜/workshop , that contains the project on a local machine
- Our project folder workshop is not a git repository yet
- We want to have a server that hosts the workshop project and new developer can get the repository using a ‘git clone …’ command
- On server site, the new repository should be located unter ˜/gitrepos/workshop.git.
To simplify the following steps i will use the machine
localhost as the server machine.