There are two ways of creating GitHub Repo
Create a Github repo from VSCode
- Create a Project Folder on Local Machine (# mkdir project1 && cd project1)
- Open Visual Studio Code ( # code . )
- On VS Code Press Ctrl+Shift+P
- Select “Publish to GitHub”
- Select Location (Public or Private)
- Click OK to Public repo to GitHub
Create a Repo on Github and Open it in VS
- Create a new repo on VS
- Initialise it with README
- Copy HTTP url of the repo from Code –> Local –> Clone
- Open Visual Studio Code, Press Ctrl+Shift+P
- Type Git: Clone
- Select the repo
- Select/Create Repo Destination on a local machine