Home How to create a GitHub repo
Post
Cancel

How to create a GitHub repo

There are two ways of creating GitHub Repo

Create a Github repo from VSCode

  1. Create a Project Folder on Local Machine (# mkdir project1 && cd project1)
  2. Open Visual Studio Code ( # code . )
  3. On VS Code Press Ctrl+Shift+P
  4. Select “Publish to GitHub”
  5. Select Location (Public or Private)
  6. Click OK to Public repo to GitHub

Create a Repo on Github and Open it in VS

  1. Create a new repo on VS
  2. Initialise it with README
  3. Copy HTTP url of the repo from Code –> Local –> Clone
  4. Open Visual Studio Code, Press Ctrl+Shift+P
  5. Type Git: Clone
  6. Select the repo
  7. Select/Create Repo Destination on a local machine
This post is licensed under CC BY 4.0 by the author.