
Git 版本控制
玛斯特・布兰迪
学习、记录、分享、交流
展开
-
Git 版本控制 -- 理解 Git Rebase 指令
git reset 使用场景为丢弃 commit 后的 commit信息、index 信息或者源码。git reset 三种模式 - -soft - -mixed(默认) - -hardgit reset - -soft HEAD~n或commit id 回退项: commit 信息 回退情况: 当前 com...原创 2018-09-13 16:13:27 · 375 阅读 · 0 评论 -
Git 版本控制 -- 提交本地分支到远端分支/拉取远程分支
创建新分支 git branch newbranch 或 git checkout -b newbranch 创建并切换到新分支展示分支 git branch 切换分支 git checkout newbranch推送本地新建分支到远端分支(远端会自动创建分支) git push origin newbranch:originbr...原创 2018-09-13 16:24:02 · 742 阅读 · 0 评论 -
Dagger 2 系列(五) -- 进阶篇:@Scope 和 @Singleton
Dagger 2 系列(五) – 进阶篇:@Scope 和 @SingletonAnnotated dependencies are single-instances but related to component lifecycle (not the whole application).In Dagger 2 scopes mechanism cares about keepin...原创 2018-09-21 15:39:33 · 2163 阅读 · 0 评论