Ok so apparantly I had the automatic git repo creation on in VS Code (and also clicked on the pop up).
So lesson learnt: Never keep any setting for git repo creation on in code editor, read what the pop-up is saying before clicking on them because VS Code relies on pop-ups quite a lot for making tasks easier. And always create a repo though the terminal.
Note: The issue was resolved in the comments.