Skip to content

Instantly share code, notes, and snippets.

@stebulus
Created December 30, 2015 23:36
Show Gist options
  • Select an option

  • Save stebulus/9d1a9c0337f7927051fc to your computer and use it in GitHub Desktop.

Select an option

Save stebulus/9d1a9c0337f7927051fc to your computer and use it in GitHub Desktop.
git init .
git remote add origin https://github.com/foo/bar
git config core.sparseCheckout true
echo sub/dir >> .git/info/sparse-checkout
git pull --depth 1 origin master # assuming you don't want history either
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment