Skip to content

Instantly share code, notes, and snippets.

@rudijs
Created January 29, 2021 02:08
Show Gist options
  • Save rudijs/17bc0f36d014918dbad7141652c7a658 to your computer and use it in GitHub Desktop.
Save rudijs/17bc0f36d014918dbad7141652c7a658 to your computer and use it in GitHub Desktop.
mkdir EXAMPLE_REPO
cd EXAMPLE_REPO
git init
git config core.sparseCheckout true
# the folder you want
# required the trailing /
echo 'SWAGGER/' > .git/info/sparse-checkout
git remote add origin ssh://git@github.com/MY_ORG/EXAMPLE_REPO
git pull origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment