2 Star 0 Fork 0

ibase-work-docs / gitTutorial

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
8fen-zhi-guan-li.md 791 Bytes
一键复制 编辑 原始数据 按行查看 历史
chengbenchao 提交于 2018-01-09 17:00 . Updates 8fen-zhi-guan-li.md

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>
1
https://gitee.com/ibase-work-docs/gitTutorial.git
git@gitee.com:ibase-work-docs/gitTutorial.git
ibase-work-docs
gitTutorial
gitTutorial
master

搜索帮助