Git commands take 5 minutes

496 views
Skip to first unread message

Lennert Bruin

unread,
Jun 29, 2023, 8:49:17 AM6/29/23
to git-for-windows
Hi there, 

I've recently installed git for windows, but it is terribly slow in executing commands. A simple git config --global --list takes about 5 minutes to complete (literally). The trace does not show much (see below). My colleague installed it as well and with him it works within a second. I tried some different configurations, removing cached credentials in Windows Credential Manager (as suggested in some bug report), re-installed the whole thing, but nothing seems to help. Any ideas about what I can further inspect are much appreciated.

git --version
14:18:56.737685 exec-cmd.c:243          trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
14:18:56.753686 git.c:462               trace: built-in: git version
git version 2.41.0.windows.1

git config --global --list
14:06:15.981389 exec-cmd.c:243          trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
14:06:15.995713 git.c:462               trace: built-in: git config --global --list
14:06:15.999374 run-command.c:661       trace: run_command: unset GIT_PAGER_IN_USE; LESS=FRX LV=-c less
*** here it hangs for 5 minutes, then shows the result below***
credential.autodetecttimeout=-1
user.name=bla...@bla.com-at-111111111111
user.email=bla...@bla.com
credential.https://git-codecommit.*.amazonaws.com.helper=!aws codecommit credential-helper $@
credential.https://git-codecommit.*.amazonaws.com.usehttppath=true
credential.https://git-codecommit.eu-west-1.amazonaws.com.provider=generic

Thanx,
Lennert

Endre Vass

unread,
Jul 3, 2023, 6:25:33 AM7/3/23
to git-for-windows
Hello

Same issue for me  at the same point. 

GIT 2.39.2 works without any issue
GIT 2.40.0 is very slow :( ot the same point

Lennert Bruin

unread,
Jul 3, 2023, 7:09:38 AM7/3/23
to Endre Vass, git-for-windows
Hi there,

As a followup: I installed the 32-bit version and that worked without problems. Not ideal, but at least it gave me a workaround.

Regards,
Lennert

Op ma 3 jul 2023 om 12:25 schreef Endre Vass <srtw...@gmail.com>:
--
You received this message because you are subscribed to a topic in the Google Groups "git-for-windows" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/git-for-windows/1VIb7jjkJhM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to git-for-windo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/git-for-windows/f398964b-e5fd-468d-881b-0fc13b2d1a74n%40googlegroups.com.


--
MvG,
Lennert Bruin

Konstantin Khomoutov

unread,
Jul 7, 2023, 7:08:02 AM7/7/23
to git-for...@googlegroups.com
Hi, guys!

On Mon, Jul 03, 2023 at 01:09:23PM +0200, Lennert Bruin wrote:

[...]
>> Same issue for me at the same point.
>>
>> GIT 2.39.2 works without any issue
>> GIT 2.40.0 is very slow :( ot the same point
>>
>> Lennert Bruin a következőt írta (2023. június 29., csütörtök, 14:49:17
>> UTC+2):
>>
>>> I've recently installed git for windows, but it is terribly slow in
>>> executing commands. A simple git config --global --list takes about 5
>>> minutes to complete (literally). The trace does not show much (see below).
>>> My colleague installed it as well and with him it works within a second. I
>>> tried some different configurations, removing cached credentials in Windows Credential
>>> Manager (as suggested in some bug report), re-installed the whole thing, but
>>> nothing seems to help. Any ideas about what I can further inspect are much
>>> appreciated.

>>>> As a followup: I installed the 32-bit version and that worked without
>>>> problems. Not ideal, but at least it gave me a workaround.

Could you please chime in in [1]? It looks like dealing with the slowness.

It's better to help debug the problem as the 32-bit version will inevitably be
phased out soon.

1. https://github.com/git-for-windows/git/issues/4459

Handisaputra Lin

unread,
Jul 11, 2023, 8:51:45 AM7/11/23
to git-for...@googlegroups.com
What is your processor?

--
You received this message because you are subscribed to the Google Groups "git-for-windows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to git-for-windo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/git-for-windows/20230707110756.nq46mvsxscebe6os%40carbon.
Reply all
Reply to author
Forward
0 new messages