Strangely enough, I am using https and I could fetch from console or in VSCode just fine.
What seems to have fixed it for me was to switch from Embedded Git to System Git.