Skip to content

Instantly share code, notes, and snippets.

@snarky
Last active November 3, 2015 14:48
Show Gist options
  • Save snarky/07005b25cda08d48edf0 to your computer and use it in GitHub Desktop.
Save snarky/07005b25cda08d48edf0 to your computer and use it in GitHub Desktop.

Revisions

  1. snarky renamed this gist Nov 3, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.txt → cmd.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    # Fetch all branches after un git clone single-branch
    $ git clone --single-branch <url>
    ...
    $ git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
  2. snarky revised this gist Nov 3, 2015. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,9 @@
    $ git clone --single-branch <url>
    ...
    $ git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
    $ git fetch origin
    $ git fetch origin


    $ export GIT_SSL_NO_VERIFY=1
    $ git config http.postBuffer 524288000
    $ git config core.fileMode false
  3. snarky revised this gist Sep 2, 2015. No changes.
  4. snarky created this gist Sep 2, 2015.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    $ git clone --single-branch <url>
    ...
    $ git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
    $ git fetch origin