Skip to content

Instantly share code, notes, and snippets.

@mfine2
Created August 20, 2013 17:53
Show Gist options
  • Save mfine2/6284839 to your computer and use it in GitHub Desktop.
Save mfine2/6284839 to your computer and use it in GitHub Desktop.
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