For me this was due to long file names and doing a simple config as below resolved it
git config --system core.longpaths true
For me this was due to long file names and doing a simple config as below resolved it
git config --system core.longpaths true