Hi @Mr Sonbir ,
Thank you for providing the additional diagnostic information and for your continued cooperation during the investigation.
Based on the information collected so far, one likely area to investigate is whether the endpoint security configuration is interfering with the Git executable bundled with Visual Studio. This could explain why Git works from PowerShell, Git Bash, and VS Code, while Git operations initiated specifically from Visual Studio continue to fail.
Although security exclusions were already tested, please ask your security team to verify specifically that exclusions are configured for the Visual Studio bundled Git directory applicable to the installed Visual Studio version and edition:
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw64\bin
C:\Program Files\Microsoft Visual Studio\18\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw64\bin
C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw64\bin
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw64\bin
Please note that excluding the separately installed Git for Windows directory, such as: C:\Program Files\Git does not necessarily cover the Git executable and related binaries bundled with Visual Studio.
The security team should verify that:
- The exclusion applies to the exact Visual Studio edition and version installed on the affected machine.
- The exclusion has been successfully delivered and applied to the affected device.
- The exclusion covers the full
mingw64\bin directory, rather than only a separate git.exe installation.
- No other endpoint-security or application-control policy continues to inspect or restrict Git-related child processes launched from
devenv.exe.
After the exclusions have been verified, please restart Visual Studio and test the following:
- Open Git > Settings > Git Global Config and confirm whether the settings load successfully.
- Select Clone a repository and try cloning the same Azure DevOps repository.
- Test a pull or update operation in an existing repository.
During my investigation, I also found a similar issue reported in the Visual Studio Developer Community. The reported symptoms closely match the behavior in your environment.
In that case, the issue was resolved after the organization’s security team added exclusions for the Visual Studio bundled Git directories. Microsoft subsequently classified that specific report as a local security configuration issue rather than a Visual Studio product bug
If you found my response helpful or informative, I would greatly appreciate it if you could follow this guide for your confirmation. Thank you.