git 应用
来源:互联网 发布:asp.net编程 编辑:程序博客网 时间:2024/06/05 23:47
在当前HEAD上创建分支$ git branch testing
,这里并没有改变HEAD的位置,只是新建了一个分支,而且这个testing分支和master分支的指针指向同一个快照
查看各个指针指向快照的位置(HEAD指针和所有的分支指针)$ git log --oneline --decorate
切换到testing分支指针上$ git checkout testing
在testing分支指针上提交 git commit -a -m 'made a change'
回到master分支指针上并提交$ git checkout master
,$ git commit -a -m 'made other changes'
查看所有分支 $ git log --oneline --decorate --graph --all
参考文献:
https://git-scm.com/book/zh/v2/Git-%E5%88%86%E6%94%AF-%E5%88%86%E6%94%AF%E7%AE%80%E4%BB%8B
阅读全文
0 0
- Git 应用
- git 应用
- git应用
- git应用
- git 应用
- [git] git 应用
- [Git] Git初应用
- [GIT] git应用 命令总结
- git应用模式
- 版本控制 git 应用
- GIT命令行应用
- git patch应用
- git 的应用
- git应用技巧
- Git 应用参考
- git 的应用学习
- git的部分应用
- git stash 应用
- Linux|windows下部署多个Tomcat
- laravel使用中间件实现禁止未登录用户访问页面
- 电力系统的削峰填谷
- java File类的mkdir和mkdirs的区别
- Jenkins持续集成发布项目
- git 应用
- MySql Lost connection to MySQL server at 'reading initial communication packet', system error: 0
- 【第十五周】740. Delete and Earn
- 基于MFC框架的C++游戏开发(四)键盘响应和鼠标响应
- android 自定义ripple
- 处理百万级以上的数据提高查询速度的方法
- GCD HDU
- MySQL 基础——「MySQL服务器锁和Innodb锁概述」
- java 性能调优小细节