Skip to content

Instantly share code, notes, and snippets.

@attilagyorffy
Created December 12, 2016 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save attilagyorffy/285e65aa48e7793a7b663fb508d0a659 to your computer and use it in GitHub Desktop.
Save attilagyorffy/285e65aa48e7793a7b663fb508d0a659 to your computer and use it in GitHub Desktop.
Git URL shortcuts to github and heroku
# Allow cloning repositories using shortcuts.
# For example:
# git clone gh:attilagyorffy/foo
[url "git@github.com:"]
insteadOf = gh://
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "git@gist.github.com:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[url "git@heroku.com:"]
insteadOf = "heroku:"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment