Git Github commands

Github commands

Global setup:

 Set up git
  git config --global user.name "Your Name"
  git config --global user.email email@email.com

Next steps:

  mkdir Test
  cd Test
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin https://github.com/username/Test.git
  git push -u origin master

Existing Git Repo?

  cd existing_git_repo
  git remote add origin https://github.com/username/Test.git
  git push -u origin master