What helped me the most debugging this was to enable git tracing
in cmd line set GIT_TRACE=1
in powershell or pwsh $env:GIT-TRACE=1