Add current project to an existing GitHub repository

  1. Create a GitHub repo (ignore this step if you already have one or created one).
  2. On your computer open terminal and go to the project root folder.
  3. run the following:
    • git init
    • git add .
    • git commit -m “initialize”
    • git remote add origin <remote repo URL>
    • # optional step:
      • git remote set-url origin <remote repo URL>
    • git push origin main