Creating a Github repository from a local computer

In terminal:

  • Open cmd.exe or preferred terminal
  • Navigate into, or create, the folder needed to be uploaded to Github
  • Verify files and sub-folders are ready to upload
  • git init

On the internet:

  • Within a profile on, create a repository for these local computer files & folders
  • In that new repository, go to ‘Clone or Download’ and copy the ‘web URL’ (for example: <>)

In terminal:

  • git remote add origin
  • git add .
  • git commit -m “initial commit”
  • git status
  • git push origin master
    • git push –u origin master
      • for first push
    • git push –f origin master
      • for force overwrite

Set Global Configuration:

  • git config –global “name
  • git config –global “email
  • cat ~/.gitconfig
    • check status