1、新建并切换到该分支 git checkout -b 新分支名称 2、删除分支 git branch -d 分支名称 3、合并分支 git merge 被合并分支名称 本栏目推荐文章linux 安装最新版本gitgit bash报错fatal: detected dubious ownership in repository at的解决方法git commit规范Git提交规范如何把已有项目上传到git一段shell代码可用于git部署代码到服务器的操作openEuler欧拉设置git pull免密git常用命令安装篇 —— gitConditional Git Configuration 有条件配置Git信息