What i did before was git config --global url."https://".insteadOf "git://", which messed up my config.
What i did to fix this was git config --global --list
Then I saw that i had url.git://.insteadof=https:// in the config
so I used git config --global --unset url.git://.insteadof to remove it, and everything worked fine, hope this helps