Rosio Pavoris a blog

Lol Github

I’ve never had much use for source control, but after that one thread broke /prog/scrape I realised it might be useful to have somewhere centralised to put the source code and recent diffs, instead of just having a possibly-up-to-date file hidden here somewhere and having people download that whenever their shit breaks without really knowing if I fixed it yet.
Github was an obvious choice, not least because bandwagons are awesome, but then I lost interest and forgot about it until now.

Incidentally, when you create a new repository on Github, it automatically generates a URL for you to push to, of the form git@github.com:​username/​projectname.git. The project name can’t have any characters outside [a-zA-Z0-9-], though, so when it does they’re replaced with dashes.
Whoever wrote that piece of code, though, forgot that project names apparently also can’t start with a dash, so when you try to push to it, it just gives you an unhelpful error message:

Invalid repository url. Make sure you include the .git, e.g. git@github.com:defunkt/ambition.git

And then it breaks the connection, which is particularly nice when your first experience with git involves pushing a project named -prog-scrape.
Anyway, easy enough to fix. I do like that it uses ssh, so I don’t have to type my password every time. I’ll probably be creating additional repos for my many, many other projects that people find useful.

tl;dr: http://github.com/Cairnarvon/progscrape/tree/master

4 Comments

  1. Haxus the Lesser said,

    I’ve been meaning to try out git hub for a long time. Shame I’m a lazy bastard and will finally get an account just as it’s dying.

  2. Anonymous said,

    Look forward to the crowdsourced efforts of the social community to help you leverage and utilize best-practices 2.0. We should start with a suite of unit tests. Hit me up on Facebook to coordinate our efforts.

    __________
    Sent from my iPhone.

  3. Anonymous said,

    I think Randall reads your blog! He just made a comic about github!

  4. Anonymous said,

    Real men use Mercurial.

Post a Comment

RSS feed for comments on this post · TrackBack URL