![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
文章平均质量分 80
Heidi8727
就算大雨让这座城市颠倒...
展开
-
repo总结
1、 repo start ##创建并切换分支repo start newbranchname [--all | projectName]刚克隆下来的代码是没有分支的,repo start是对git checkout –b 命令的封装。为指定的项目或所有项目(若使用—all参数),以清单文件中为设定的分支,创建特性分支。这条指令与git checkout –b 还是有很大的区别的,git ...原创 2018-01-05 16:03:51 · 46061 阅读 · 3 评论 -
git log 总结
1.git log filename(查看该文件相关的commit记录)2.git log -p filename(显示该文件每次提交的diff)3.git show commit-id/branchName/tagName(查看某次提交/分支/tag的详细信息)4.git show commit-id filename(查看某次提交中的某个文件)git log 的常用选项选项 (说明...原创 2018-01-04 14:39:09 · 943 阅读 · 1 评论 -
配置本地镜像
Use mirror to save time and spaceWhy use mirror:When using several clients, it is better to create a local mirror, and to sync code from that mirror (which requires less network access and save space/...原创 2020-05-15 14:06:25 · 329 阅读 · 0 评论 -
git使用心得
git里有四种对象:commit、tree、blob、tag文件的三种状态:committed(已经提交的)、modified(已修改的)、staged(已暂存的)git中的分支,本质上仅仅是个指向commit对象的可变指针。HEAD是一个指向你正在工作中的本地分支的指针(注:将HEAD想象为当前分支的别名)。reset 会改变当前分支HEAD的引用值!checkout 会移动当前分支的HEA...原创 2018-05-24 15:14:30 · 926 阅读 · 1 评论