I need to checkout single folder of a tag from Bitbucket Git repo. I have checked out the single folder of a branch from the Bitbucket by using the following steps:
mkdir <repo>
cd <repo>
git init
git remote add -f origin <url>
git config core.sparseCheckout true
echo "some/dir/" >> .git/info/sparse-checkout
echo "another/sub/tree" >> .git/info/sparse-checkout
git pull origin master
Like this can we checkout the single folder of a tag?