When I clone a repository on Windows, it complains about a file name with colon, so checkout fails. I want to use sparse checkout to exclude the whole directory, but it doesn't work. Is sparse checkout the correct way to help here?
My steps:
git init <project_name>
cd <project_name>
git remote add origin http://<url>.git
git config core.sparsecheckout true
echo "folder1" >> .git/info/sparse-checkout
echo "folder2" >> .git/info/sparse-checkout // exclude folder3 as it causes trouble.
git pull origin master
However it still downloads everything and checkout to master fails because of that file with a colon in its name. Am I doing everying correctly and is sparse checkout the correct way to help me?