Git Tutorial

  1. set your name and email

git config user.name Charles
git config user.email cmorace.public@gmail.com
  1. create a repository

git init
  1. git status is your friend!

  2. add all the new files in your local repository’s directory

git add -A
  1. did you add the right files? git status is your friend!

  2. commit the files to your repo

git commit -m "add a message"
  1. did you commit the right files? git status is your friend!

  2. set the remote (check Github for the remote name)

  3. push to the remote (check Github for the remote address)

  4. After that you can push the files to your remote repository (e.g. Github) with:

git push