Follow the instructions below to download a sample from GitHub.
- 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 git config core.sparseCheckout true
List out the folders/files you want to check out in
.git/info/sparse-checkout
using theecho
command below and finally . Lastly, run thegit pull
command to update the empty repository with the remote one.Code Block echo "modules/samples/" >> sparse-checkout git pull origin master
You will find the directory downloaded onto your local folder.