💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] ## 1.创建分支 `git branch <branch-name>` ## 2.切换分支 `git checkout <branch-name>` ## 3.创建+切换分支 `git checkout -b <branch-name>` ## 4.查看分支 `git branch` ## 5.创建分支和远程分支连接 `git checkout -b <branch-name> origin/<branch-name>` ## 6.合并分支 ~~~ git merge <branch-name> git merge --no-ff -m"xx" <branch-name> ~~~ ## 7.查看分支图 `git log --graph --pretty=oneline --abbrev-commit` ## 8.将修改内容添加到工作区的存储区 ~~~ git stash //查看存储区的内容 git stash list //恢复存储区的内容 git stash pop ~~~ ## 9.删除分支 ~~~ git branch -d <branch name> git branch -D <branch name> ~~~ ## 10.推送分支 `git push orgin <branch name>`