git pull origin master --rebase

git pull origin master --rebase

创建分支testing
git branch testing

分支管理
git branch

分支切换
git checkout testing

删除分支
git branch -b testing

合并分支
使用 git merge 命令来合并两个分支,首先切换到 master 分支中,然后使用命令 git merge testing 会弹出类似于提交信息文本,用 vim语法编辑然后退出。

git branch -v  可以查看每一个分支的最后一次提交

posted @ 2023-09-18 10:53  pxuan  阅读(21)  评论(0编辑  收藏  举报