sudo apt install git
git init
git remote add origin ${repository}
git config core.sparsecheckout true
echo ${folder path} > .git/info/sparse-checkout
git pull origin master
Sample:
git init
git remote add origin https://github.com/azqazq195/moseoh_server
git config core.sparsecheckout true
echo moseoh_homepage/* > .git/info/sparse-checkout
git pull origin master