Reputation: 4585
I have a small machine running Debian and can access it via ssh -l user host
. Now I created a git repository in a folder on that machine.
The thing that I can not figure out is: What do I have to do, that git would let me access that repository in the way git push ssh://yourserver.com/~you/proj.git +master
Or in other words: what means ssh://
, and how do I set up access to a repository using that protocol?
Thank you for your help/hints!
Upvotes: 2
Views: 213
Reputation: 4028
See this Pro Git. In particular, see Chapter 4, "Git on the server".
It's quite easy to setup =)
Upvotes: 2
Reputation: 8951
I've been through this whole problem before. I ended up settling on gitolite to manage git & ssh. It's very easy to install (if you use the package method) and it makes maintaining repositories easy.
Upvotes: 3
Reputation: 100050
Lot's of people use gitosis for this. But that does not support ~you.
Upvotes: 1