repo.or.cz
If you’ve read my last post and you’re not a repo.or.cz user, then you probably had a WTF moment.
The problem is that this:
http://repo.or.cz/w/lcapit-junk-code.git
Is not a valid git repository to be cloned, it’s just my repository’s gitweb page. Yeah, I know, the ‘.git’ at the end makes you think it’s a git repository…
But it can get even more confusing! Besides the gitweb’s URL, each project hosted by repo.or.cz also has three additional URLs, take a look:
git://repo.or.cz/lcapit-junk-code.git
http://repo.or.cz/r/lcapit-junk-code.git
git+ssh://repo.or.cz/srv/git/lcapit-junk-code.git
The first is the one you should use to clone my repository:
$ git clone git://repo.or.cz/lcapit-junk-code.git
So that git-clone can clone by using git’s protocol.
The HTTP one can also be used to clone the repository, but git-clone will clone through (guess what) HTTP and that’s slow. You don’t want to use it, trust me. You should only use it if you’re behind a firewall or something like that.
The last one is used by the repository’s owner to push into the repository, just ignore it.