Skip to content

Instantly share code, notes, and snippets.

@fredjean
Created August 15, 2012 03:30
Show Gist options
  • Save fredjean/3355455 to your computer and use it in GitHub Desktop.
Save fredjean/3355455 to your computer and use it in GitHub Desktop.
Custom Git URL Handlers

Using a custom URL scheme for shorter GitHub URLs

Run the following command:

git config --global url.ssh://git@github.com/.insteadof gh:

This will tell Git to expand the gh: URL scheme to ssh://git@github.com. You can then checkout a repo using the shorter syntax:

git clone gh:fredjean/simpler_workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment