How to create a GitHub repo using command line

May 3, 2021

So you're ready to setup your repo using command line (or CLI), awesome!

Steps to create a new repo

  1. Create a new directory where you want your repo to be stored.
  2. Go into that directory.
  3. Initialize GitHub by typing git init. This will create an empty Git repository or reinitialize an existing one.
  4. Write some code or copy paste your working files into this folder.