This post just a note to myself and it works on my environment. it has not been widely tested.
Enable git sparse-checkout
Just in my case, I cloned a git repo exists problems on the Windows platform with some folder, in order to work on the Windows platform we get a work around solution as following:
Case 1: when you not already cloned a repository
mkdir git-src |
Case 2: when you already cloned a repository
cd git-src |
Disable git sparse-checkout
git config core.sparseCheckout false |