...
- Create a folder in your local machine and navigate to it using your command line.
Run the following commands.
Code Block language bash mkdir is-samples cd is-samples/ git init git remote add -f origin https://github.com/wso2/product-is.git
Code Block language bash git config core.sparseCheckout true
Navigate into the .
git/info/
directory and list out the folders/files you want to check out using theecho
command below.Code Block language bash cd .git cd info echo "modules/samples/" >> sparse-checkout
Navigate out of
.git/info
directory and run thegit pull
command to checkout the v5.1.0 tag to update the empty repository with the remote one.Code Block language bash cd .. cd .. git pull origin master checkout -b v5.1.0 v5.1.0
You will find the directory downloaded onto your local folder.