Visual Studio 2022 V17.1.14 Git issue Solution
Visual Studio 2022 V17.1.14 issue
When Visual Studio 2022 was update to version 17.1.14, Git has suddenly stopped working. The main reason seems linked to a security update of Git.
This issue has been solved, you can read the following article from stackoverflow.
After updating Visual Studio 2022, projects no longer under Git control.
For the details, you can run the following code in each location included .git file.
git config --global --add safe.directory %(prefix)/Path`
Path is the address at .git file with symbol’/’. For example, if your Git repo is in “E:\VS2022\Source\Repos\cplus1”, where included .git file (almostly hidden), then execute the following code in CMD.
git config --global --add safe.directory %(prefix)/E:/VS2022/Source/Repos/cplus1
All done, now open project in Visual Studio 2022.