Created
December 22, 2012 04:06
-
-
Save kyktommy/4357450 to your computer and use it in GitHub Desktop.
Try Git Notes
This file contains 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
# local | |
git init | |
git status | |
git add . | |
git commit -m "add *" | |
git log | |
git rm '*.txt' | |
#remote | |
git remote add origin git@github.com:kyktommy/try_git.git | |
git push -u origin # -u for remember parameter; `git push` | |
git pull origin master | |
git diff HEAD | |
git diff --staged | |
git reset foo.txt # unstage foo.txt | |
git checkout -- <target> | |
# Branch | |
git branch clean_up # new clean_up branch | |
git branch # show all branch | |
git checkout clean_up # switch to clean_up branch | |
git branch -d clean_up # delete | |
# swtich to master, merge with clean_up | |
git checkout maseter; git merge clean_up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment