sudo apt install git

A. Create a new project on github then clone

Step 1: Create a new Github repo

Step 2:

B. Push an existing project to github This is just my note, you had better go here for up-to-date information.

Step 1: Create a new GitHub Repo

Step 2: Initialize Git in the project folder

  git init
  git add -A
  git commit -m 'Added my project'
  git remote add origin
  git push -u -f origin master

Add key

A repository can hold many folders