Created
August 20, 2013 17:53
-
-
Save mfine2/6284839 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 log #查看提交日志 | |
git branch #查看分支 | |
git branch develop #从当前分支切出development分支 | |
git branch #查看分支 | |
git checkout develop #切换到develop分支 | |
git branch #查看分支 | |
echo "how old are you, git" >> hello | |
git diff | |
git status | |
git add hello | |
git commit -m "ask age" | |
git checkout master #切换到master分支 | |
git merge develop #将develop合并到master分支 | |
cat hello | |
git branch | |
git branch -d develop | |
git branch | |
###捷的命令 | |
git checkout -b develop | |
echo "what is your name" >> hello | |
git commit -am "ask name" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment