|A helpful git config snippet
||[Jun. 4th, 2010|05:15 pm]
Will Woods, Fedora Testing Guy
So, if you're like me, you like to poke through the source of things from time to time but you always forget what the proper URL is for, say, GNOME git. Or Fedora hosted. Or whatever.|
Well, good news, friend! Stuff this into your
~/.gitconfig and make your life a bit easier:
insteadOf = "fh:"
insteadOf = "fh-ssh:"
insteadOf = "gnome:"
insteadOf = "gnome-ssh:"
insteadOf = "fdo:"
insteadOf = "fdo-ssh:"
Now you can do stuff like
git clone fdo:plymouth or
git clone fh-ssh:autoqa.git and it should Just Work*. Neat!
Now, if I was really clever, I'd find somewhere to ship this in the default Fedora install, or at least as part of the developer tools. Maybe someone else out there is really clever?
*Unless your local username is different from the remote username, in which case ssh might not work - but you can fix that by changing the url to
ssh://username@... or putting the following in