Skip to content

Instantly share code, notes, and snippets.

@serbrech
Forked from stevenh512/gitconfig-git
Created November 13, 2015 08:39
Show Gist options
  • Select an option

  • Save serbrech/b66c92448faba2ff08b3 to your computer and use it in GitHub Desktop.

Select an option

Save serbrech/b66c92448faba2ff08b3 to your computer and use it in GitHub Desktop.

Revisions

  1. @stevenh512 stevenh512 revised this gist Jun 11, 2012. 2 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
  2. @stevenh512 stevenh512 created this gist Jun 11, 2012.
    7 changes: 7 additions & 0 deletions .gitconfig-git
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # Use git and git+ssh instead of https
    [url "git://github.com/"]
    insteadOf = https://github.com/
    [url "[email protected]:"]
    pushInsteadOf = "git://github.com/"
    [url "[email protected]:"]
    pushInsteadOf = "https://github.com/"
    5 changes: 5 additions & 0 deletions .gitconfig-https
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # Use https instead of git and git+ssh
    [url "https://github.com/"]
    insteadOf = git://github.com/
    [url "https://github.com/"]
    insteadOf = [email protected]: