It Seemed Like a Good Idea, at the Time

Git Short URLs

4b1b5a08-6f27-4055-9862-70f3dca374a3
20 Jul 2009

I knew for a fact this feature existed, but even so it took me a half hour to track down the syntax for it. To prevent myself ever needing to do that again, I’m putting it here. To create a nice, short URL abbreviation for git, such as myserver:project.git, put the following in ~/.gitconfig

[url "ssh://my.server/~/"]
    insteadOf = myserver:
blog comments powered by Disqus