Providing an access token allows you to avoid a user/password authentication prompt.
https://username:[email protected]/username/repo.git
git init
git remote add origin https://username:[email protected]/username/repo.git
git config core.sparseCheckout true
echo "path/to/folder/within/repo" >> .git/info/sparse-checkout
git pull origin master