Git备忘录 发表于 2016-12-04 | 分类于 Git 随手记的Git指令。 查看本地分支:git branch 查看远端分支:git branch -r 查看所有分支,包括本地和远程的:git branch -a 创建分支:git branch <name> 切换分支:git checkout <name> 创建+切换分支:git checkout -b <name> 合并某分支到当前分支:git merge <name> 删除分支:git branch -d <name>