Skip to content

Instantly share code, notes, and snippets.

@patrickmaciel
Created October 5, 2012 13:41
Show Gist options
  • Save patrickmaciel/3839860 to your computer and use it in GitHub Desktop.
Save patrickmaciel/3839860 to your computer and use it in GitHub Desktop.
try cloning github repository without commits
> git clone -b master --single-branch --depth 1 [email protected]:patrickmaciel/git-essential.git
error: unknown option `single-branch'
usage: git clone [options] [--] <repo> [<dir>]
> git archive --remote git://github.com/patrickmaciel/git-essential.git master | tar -xvf - -C .
fatal: remote error:
Your Git client has made an invalid request:
0048git-upload-archive /patrickmaciel/git-essential.git
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment