当前位置: 代码迷 >> 综合 >> git branch 分支系统
  详细解决方案

git branch 分支系统

热度:100   发布时间:2023-10-10 23:07:38.0

查看分支

$ git branch
* master

新建分支

$ git branch dev

 

$ git branch
  dev
* master

 切换分支

$ git checkout dev
Switched to branch 'dev'

删除分支

$ git branch -d alibug
Deleted branch alibug (was d325e5c).

合并分支

$ git merge dev
Merge made by the 'recursive' strategy.c.txt      | 1 +test.txt   | 3 ++-wechat.php | 2 ++3 files changed, 5 insertions(+), 1 deletion(-)create mode 100644 c.txtcreate mode 100644 wechat.php

 

  相关解决方案