mkdir myrepo && cd myrepo
git init
Setup
git remote add origin -f [email protected]:USERHERE/myrepo.git
git sparse-checkout init
# Repo top level dir to match on sparse checkout (can specify multiple, space separated)
git sparse-checkout set scripts
Verify
git sparse-checkout list
Pull just the matches from a certain branch due to the sparse-checkout list.
git pull origin main