Git cheat sheet

  • git pull – updates your code
  • git diff
  • git diff –cached – compare locally staged commits
  • git diff master origin/master – compare local repo with remote repo