标签:.com under version system ups ast checkout software 更新
分支管理的好处:既不影响别人的工作又无需承担文件进度丢失的风险
$ git checkout -b dev
$ git branch dev
$ git checkout dev
$ git branch
$ git checkout master
$ git merge dev
$ git branch -d dev
Git is a distributed version control system.
Git is free software distributed under the GPL.
Git has a mutable index called stage.
Git tracks changes of files.
<<<<<<< HEAD
Creating a new branch is quick & simple.
=======
Creating a new branch is quick AND simple.
>>>>>>> feature1
$ git log --graph --pretty=oneline --abbrev-commit
$ git merge --no-ff -m "merge with no-ff" dev
$ git stash
$ git stash list
git stash apply
git stash drop
git stash pop
$ git stash apply stash@{0}
$ git branch -D feature-vulcan
$ git pull
$ git branch --set-upstream dev origin/dev
$ git remote -v
标签:.com under version system ups ast checkout software 更新
原文地址:http://www.cnblogs.com/cjxltd/p/7125717.html