I initiate sync, fetch, pull or push from the 'Git Changes' tab in Visual Studio, but the operation just hangs, with no option to stop it. I have to hit the 'X' to close Visual Studio.
If the operation is a sync it opens a modal dialog over everything else, so the hang is even worse and I have to force quit Visual Studio from Task Manager.
This applies to all versions of Visual Studio with git integration (I was recently seeing it in VS 2019 and VS 2022 preview, but have seen it before in VS 2017). It often happens after setting up VS on a new machine.