git--创建与合并分支

Git鼓励大量使用分支:

查看分支:git branch

创建分支:git branch <name>

切换分支:git checkout <name>

创建+切换分支:git checkout -b <name>

合并某分支到当前分支:git merge <name>

删除分支:git branch -d <name>

忽视冲突合并: git merge feature1 Auto-merging readme.txt

查看分支合并情况:   git log --graph --pretty=oneline --abbrev-commit

猜你喜欢

转载自zx10103326.iteye.com/blog/2244562