Reputation: 1
If I try to do a git pull or push it hangs.
The only way to go out of it is with ctrl-c
.
The other git functions seems to work.
I have tried to do git reset --hard origin/master
but that didn't work.
I am using a remote WSL in VSCode. I have git version 2.25.1. I used an https URL. I am using a remote server namely github.
Anyone an idea of how to fix this?
Upvotes: 0
Views: 1948
Reputation: 169
Since you're into the WSL, the problem might be that git is not able to reach GitHub.
WSL is often affected by this kind of "no-network" issue (mostly due to antivirus or firewalls blocking connections from WSL). This exact scenario happened to me as well.
Into the VSCode terminal, connected to WSL, you can test GitHub is reachable:
ping github.com
If it is reachable, another cause of your problem might be a typo in the git HTTPS URL.
Check those of your git repo by:
git remote -v
Upvotes: 1