Skip to content

Instantly share code, notes, and snippets.

@L2G
Created September 29, 2012 04:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save L2G/3803228 to your computer and use it in GitHub Desktop.
Save L2G/3803228 to your computer and use it in GitHub Desktop.
A little sugar I add to my user .gitconfig
[url "git@github.com:L2G/"]
insteadOf = "github:///L2G/"
insteadOf = "http://github.com/L2G/"
insteadOf = "https://github.com/L2G/"
[url "https://github.com/"]
insteadOf = "github:///"
insteadOf = "http://github.com/"
@L2G
Copy link
Author

L2G commented Sep 29, 2012

This lets me check out any GitHub repo with something like:

git clone github:///L2G/veewee

Note that it routes URLs for my own repos to pushable addresses, while others are routed to standard read-only URLs.

If you use this, of course you would need to substitute your own username for "L2G".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment