Skip to content

Instantly share code, notes, and snippets.

@lilliealbert
Created April 22, 2013 17:02
Show Gist options
  • Save lilliealbert/5436735 to your computer and use it in GitHub Desktop.
Save lilliealbert/5436735 to your computer and use it in GitHub Desktop.
Git Cheat Sheet
first time:
git config --global user.name "My Name"
git config --global user.email "[email protected]"
each repo:
git init
LOCAL THINGS
git status
git add .
git add foo.txt
git add -A
git commit
git commit -m "Commit message"
PUSHING TO REMOTES
git push heroku master
WHAT HAPPENED?
git log
git diff
git diff --staged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment