Skip to content

Instantly share code, notes, and snippets.

@akbargumbira
Created May 28, 2016 15:49
Show Gist options
  • Save akbargumbira/513a36357ae655b452a8ad37d88eefaf to your computer and use it in GitHub Desktop.
Save akbargumbira/513a36357ae655b452a8ad37d88eefaf to your computer and use it in GitHub Desktop.
mkdir <repo>
cd <repo>
git init
git remote add -f origin <url>
git config core.sparseCheckout true
echo "some/dir/" >> .git/info/sparse-checkout
git pull origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment