Skip to content

Instantly share code, notes, and snippets.

@svasek
Forked from Kovrinic/.gitconfig
Created July 11, 2019 15:44
Show Gist options
  • Save svasek/1a28295929370c78307ae27a291424f7 to your computer and use it in GitHub Desktop.
Save svasek/1a28295929370c78307ae27a291424f7 to your computer and use it in GitHub Desktop.

Revisions

  1. @Kovrinic Kovrinic revised this gist Apr 11, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,4 @@ git config --global url."https://github".insteadOf git://github
    ```

    ---
    **sauce:** _https://gist.github.com/grawity/4392747_ & @hansdg1
    **sauce:** _https://gist.github.com/grawity/4392747_ & [@hansdg1](https://github.com/hansdg1)
  2. @Kovrinic Kovrinic revised this gist Apr 11, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,4 @@ git config --global url."https://github".insteadOf git://github
    ```

    ---
    **sauce:** _https://gist.github.com/grawity/4392747_
    **sauce:** _https://gist.github.com/grawity/4392747_ & @hansdg1
  3. @Kovrinic Kovrinic revised this gist Apr 11, 2017. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # one or the other, NOT both

    [url "https://github"]
    insteadOf = git://github

    # or

    [url "[email protected]:"]
    insteadOf = git://github
  4. @Kovrinic Kovrinic revised this gist Apr 11, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,10 @@
    ### replace git with https
    ### Replace `git://` with `https://`
    Rewrite any `git://` urls to be `https://` but, it won't touch `ssh`urls (`[email protected]:`)

    ```sh
    git config --global url."https://github".insteadOf git://github
    ```
    ### or replace with ssh
    ### or replace with `ssh`
    Use `ssh` instead of `https://`

    ```sh
  5. @Kovrinic Kovrinic created this gist Apr 11, 2017.
    15 changes: 15 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    ### replace git with https
    Rewrite any `git://` urls to be `https://` but, it won't touch `ssh`urls (`[email protected]:`)

    ```sh
    git config --global url."https://github".insteadOf git://github
    ```
    ### or replace with ssh
    Use `ssh` instead of `https://`

    ```sh
    git config --global url."[email protected]:".insteadOf "https://github.com/"
    ```

    ---
    **sauce:** _https://gist.github.com/grawity/4392747_