Git Short URLs

July 20, 2009 at 2:27 pm | In Note To Self | Leave a Comment

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:

That’s all there is to it.

No Comments Yet »

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.