Skip to content

Instantly share code, notes, and snippets.

@fredjean
Created August 15, 2012 03:30

Revisions

  1. fredjean created this gist Aug 15, 2012.
    14 changes: 14 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # Using a custom URL scheme for shorter GitHub URLs

    Run the following command:

    ```shell
    git config --global url.ssh://[email protected]/.insteadof gh:
    ```

    This will tell Git to expand the gh: URL scheme to ssh://[email protected]. You can then checkout a repo using the shorter syntax:

    ```shell
    git clone gh:fredjean/simpler_workflow
    ```