Git Cheat Sheet

Table of Contents

Fork me on GitHub

1 Git

git_commit.png

The basics

  • Cloning an online git repository
git clone https://the.url.of.the.repository.git
  • Adding files
git add --all
  • Stashing a commit
git commit -m 'A sensible message indicating what you have changed'
  • Push your master branch to it's origin (usually GitHub)
git push origin master
  • Pull down changes from your repo's origin (if made from another machine for instance)
git pull