git command to checkout specific folder from git repo.
This sample command is for checkout a folder "restapi-jsonformat" from repo to lampp htdocs folder.
This sample command is for checkout a folder "restapi-jsonformat" from repo to lampp htdocs folder.
cd /opt/lampp/htdocsgit initgit remote add -f origin https://github.com/phpprjin/networking.gitgit config core.sparseCheckout trueecho "restapi-jsonformat" >> .git/info/sparse-checkoutgit pull origin master