User is having multiple release visual studio install on his machine 2012 2015 and VS enterprise 2019 version 16.11.18. while cloning the code from git on to local machine user is facing issue.
Error message : Error encountered while cloning the remote repository: Git failed with a fatal error.
unable to access 'URL': The requested URL returned error: 403
Git version : git version 2.37.2.windows.2
Troubleshooting performed:
-We tried to clone other repository same issue.
-Tried removing credentials manager from windows.
-git configuration file update
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\etc\gitconfig
C:\Program Files\Git\etc\gitconfig
-Removed all temp files and verified.
-Rebooted local machine to check if any cache file needed update.
-Verified to git settings under visual studio Tools->Options-> source code management.
-Uninstalled visual studio 2019 and re-install.
-Re-install git version 2.37.2.windows.2
We tried to clone same on other's machine in same project but we didn't find any issue there.
We tried to clone on our local machine it worked fine.