'Can't clone from repository of Github in Visual Studio

Recently, my visual studio can't clone from repository of GitHub.

Once it is completed clone, the visual studio will report this error "One or more errors occurred":

enter image description here

I cannot find any error in the output windows in visual studio.

And then, the Git Changes is blank. I can't pull and push any.
enter image description here

Previously I considered maybe it is the problem of my Visual Studio or Operation System.

However, after I reinstalled my Visual Studio and even reinstalled my Operation System, the problem is still here.

Soon I found a topic may relate my problem:Git has stopped working after installing VS 2022

Whereas, I tried all the ways in it and it doesn't work any.

The version of my Visual Studio is 2022 17.1.6. What's wrong with it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source