Follow this article instead if you are trying to create a repository from Github.
How to Create a Github Repository From VS Code
How to Publish to Github from VSCode
Create your project folder locally and add your
Ctrl + Shift + P (on Windows), or
Command + Shift + P (on Mac).
Select whether to Publish a private or a public repository.
Stage and commit the changes from the source control panel.
Publish and push the changes.
Your VSCode Repository should be available in Github now.
Other Version Control with Git and Github Posts
SEO Strategist at Tripadvisor, ex- Seek (Melbourne, Australia). Specialized in technical SEO. Writer in Python, Information Retrieval, SEO and machine learning. Guest author at SearchEngineJournal, SearchEngineLand and OnCrawl.