git常用命令
2016-04-05 19:03
281 查看
1.查看提交日志
git log
git log - -author=xxx
2.创建分支/切换分支
git branch V1.0
git checkout V1.0
git branch -D V1.0
//查看远程分支
git branch -a
//把本地分支提交到git服务器 分支号与冒号之间不能有空格 不然提交失败
git push origin V1.0:V1.0
3.更新/提交
git commit -m “commit log” 1.java
git push
4.分支代码 bug分支V2.0->主干开发V1.0
–V2.0-
git log
获取Version前 8位 作为 commit-id
–V1.0-
git cherry-pick commit-id
git log
git log - -author=xxx
2.创建分支/切换分支
git branch V1.0
git checkout V1.0
git branch -D V1.0
//查看远程分支
git branch -a
//把本地分支提交到git服务器 分支号与冒号之间不能有空格 不然提交失败
git push origin V1.0:V1.0
3.更新/提交
git commit -m “commit log” 1.java
git push
4.分支代码 bug分支V2.0->主干开发V1.0
–V2.0-
git log
获取Version前 8位 作为 commit-id
–V1.0-
git cherry-pick commit-id
相关文章推荐
- RPC failed; result=22, HTTP code = 411
- git更新已經刪除的文件
- 提取Git每次提交后Commit的文件
- GIT迁移服务器
- 分布式版本管理git入门指南使用资料汇总及文章推荐
- git终极指南:在实际开发中的应用
- Git远程操作详解
- 25个 Git 进阶技巧(翻译)
- 详解版本控制利器Git,SVN的异同以及适用范围
- Ruby实现的删除已经合并的git分支脚本分享
- 在 Shell 提示符中显示 Git 分支名称的方法
- Git使用基础篇(一些常用命令和原理)
- git fork同步是什么意思?
- Git使用小坑 Out of memory错误的解决方法
- Python的高级Git库 Gittle
- 使用GIT进行源码管理――GUI客户端小结
- 使用git代替FTP部署代码到服务器的例子
- linux系统安装git及git常用命令
- 分享下自己总结的Git常用命令
- Git 常用命令速查表(图文+表格)