Skip to content

Instantly share code, notes, and snippets.

@rajibdpi
Created December 14, 2024 07:12
Show Gist options
  • Save rajibdpi/3d8334322bf6b18dc56568209b32135a to your computer and use it in GitHub Desktop.
Save rajibdpi/3d8334322bf6b18dc56568209b32135a to your computer and use it in GitHub Desktop.
Solve the Git hangs on fetch, pull or clone by the following command in Windows.

Solve the Git hangs on fetch, pull or clone by the following command in Windows:

git -c core.sshCommand="'C:\Windows\System32\OpenSSH\ssh.exe'" clone ...

or

git config --global core.sshCommand "'C:\Windows\System32\OpenSSH\ssh.exe'"
try to clone

git clone ... This configures Git to use the SSH agent built into Windows instead of the OpenSSL-based one provided by MSYS2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment