I want to download a specific folder from github using git command. I have tried many things.recent was below
cd <dir>
git init
git remote add origin -f <URL>
git config core.sparseCheckout true # enable this
cat >> .git/info/sparsecheckout
<folder>
git pull origin master
but no luck, entire repo got downloaded. can anyone help with this?