Code is on TFS 2018 and using source control Git, when cloning code repository from Visual studio 19 and VS 18 got an error, see below when I go to TFS, and try to open some files do not open and show "Incorrect function" error, please see attached image and download option is not enable. Some members of my team, they had previously clone repo, they have code but they are facing issue when any corrupt file is present in the commit, so the commit can not be pushed. I tried the download as zip option to download the whole code, when I download, corrupt files are not downloaded and rest of the files are downloaded and some of the files of the specific folders are not downloaded because that folder contain corrupt file too, may be the corrupt file come first so it skip rest of the files of that folder. There are thousands of files in my source code and hundred of files are corrupted, even it is difficult to track which files are corrupted.
Anyone can tell me how to recover corrupt files on TFS so my issue would be resolved, thanks in advance.
Output window result:
c:\program files (x86)\microsoft visual studio\2019\enterprise\common7\ide\commonextensions\microsoft\teamfoundation\team explorer\Git\cmd\git.exe Cloning into 'E:\Repos1\Codebase'... POST git-upload-pack (gzip 63764 to 31908 bytes)
Remote: Microsoft (R) Visual Studio (R) Team Foundation Server
Remote: Found 121452 objects to send. (1968 ms)
Remote: Incorrect function. Error encountered while cloning the remote repository: Git failed with a fatal error. early EOF index-pack failed
As you mentioned other team member can not push commits, I assumed all your team members can not access the repo. Please try the following items: