git学习记录
2017-06-28 09:26
232 查看
1.git log 退出
当有很多条记录时,在git bash中怎么退出来,在英文状态下按q可以返回到git bash中
参考:
http://blog.csdn.net/procedure_1988/article/details/52179561
2.gitignore忽略某些文件配置学习
https://github.com/github/gitignore
3.source tree
http://www.jianshu.com/p/be9f0484af9d
http://www.cnblogs.com/wi100sh/p/5499475.html
http://www.2cto.com/kf/201605/510423.html
4.git本地分支重命名
git branch -m oldbranchname newbranchname
(参考:http://blog.csdn.net/yy20071313/article/details/49930493)
5.将某分支合并到当前分支:
6.查看当前分支:
7.将当前分支推送到远程分支:
8.新建分支并切换到该新分支:
git checkout -b newbranchname
git官方学习文档:
https://git-scm.com/book/zh/v2/Git-%E5%88%86%E6%94%AF-%E5%88%86%E6%94%AF%E7%9A%84%E6%96%B0%E5%BB%BA%E4%B8%8E%E5%90%88%E5%B9%B6
当有很多条记录时,在git bash中怎么退出来,在英文状态下按q可以返回到git bash中
参考:
http://blog.csdn.net/procedure_1988/article/details/52179561
2.gitignore忽略某些文件配置学习
https://github.com/github/gitignore
3.source tree
http://www.jianshu.com/p/be9f0484af9d
http://www.cnblogs.com/wi100sh/p/5499475.html
http://www.2cto.com/kf/201605/510423.html
4.git本地分支重命名
git branch -m oldbranchname newbranchname
(参考:http://blog.csdn.net/yy20071313/article/details/49930493)
5.将某分支合并到当前分支:
git merge branchname
6.查看当前分支:
git branch
7.将当前分支推送到远程分支:
git push origin remotebranch
8.新建分支并切换到该新分支:
git checkout -b newbranchname
git官方学习文档:
https://git-scm.com/book/zh/v2/Git-%E5%88%86%E6%94%AF-%E5%88%86%E6%94%AF%E7%9A%84%E6%96%B0%E5%BB%BA%E4%B8%8E%E5%90%88%E5%B9%B6
相关文章推荐
- 【Git 学习笔记】2.2 - 记录每次更新到仓库
- git学习笔记——查看git历史记录
- Git学习个人整理记录(二)
- git 学习记录
- xcode6 cocos2dx开玩笑git和github学习记录
- Git学习,记录一下!
- Git学习记录-------(一)
- Git学习记录
- git学习遇到问题记录。不定时更新
- git学习教程记录
- git学习笔记——查看git历史记录
- git学习记录
- 个人心得记录 --学习廖雪峰的git教程
- Git学习个人整理记录(一)
- git学习使用记录
- git实用操作学习记录
- 关于Git的简单学习记录
- git 学习记录
- 版本控制管理工具--git的学习记录
- 实习先做一点事——菜鸟学习git记录