Git - Error invalid path
Solution 1:
You can check out the file to another path, such as to the current directory
git checkout -- <path>/<file>
In your case, it should be
git checkout -- C:/Csmart/files/companies/19/migration/CompanyDataEntry.xls
You can also specify a directory to extract your file
git checkout-index --prefix=destination/path/ C:/Csmart/files/companies/19/migration/CompanyDataEntry.xls
If that does not help, just export all files into a new directory
$ git checkout-index --prefix=git-export-dir/ -a
For more information , refer to the documentation for git checkout-index