Created
April 22, 2013 17:02
-
-
Save lilliealbert/5436735 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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