有识

个人网 | 追寻一切真知灼见

用户工具

站点工具


blog:ease:git:git-basic7

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
blog:ease:git:git-basic7 [13:31 - 09月10日]
ease
blog:ease:git:git-basic7 [03:42 - 09月02日] (当前版本)
行 5: 行 5:
   - 鼓励频繁创建和合并,最强大的功能之一。   - 鼓励频繁创建和合并,最强大的功能之一。
  
-**分支原理:**+===== 分支原理===== 
  
 提交对象:\\ 提交对象:\\
行 22: 行 23:
  
  
-**创建分支:**+===== 创建分支 ===== 
 <code> <code>
 git branch bname git branch bname
行 34: 行 36:
  
  
-**分支切换:**+===== 分支切换 ===== 
 <code> <code>
 git checkout test git checkout test
行 49: 行 52:
  
  
-**查看项目的交叉历史**+===== 查看项目的交叉历史 ===== 
  
 使用 gitg git gui(图形化工具比较直观) 使用 gitg git gui(图形化工具比较直观)
行 61: 行 65:
 git config --global alias.tree 'log --oneline --decorate --graph' git config --global alias.tree 'log --oneline --decorate --graph'
 </code> </code>
-git tree 等同于命令: git log --oneline --decorate --graph+git tree 等同于命令: git log --oneline --decorate --graph\\
 git tree --all git tree --all
  
  
  
-**分支场景:**+===== 分支场景 ===== 
  
 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  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 
行 77: 行 82:
  
  
-**合并:**+===== 分支合并 ===== 
  
 git merge 把某个分支 合并到当前分支。 git merge 把某个分支 合并到当前分支。
行 95: 行 101:
  
  
-**遇到冲突的分支合并**:+===== 遇到冲突的分支合并 ===== 
  
 注意: 合并时 提示冲突。 此时git 对两个分支确实进行了合并,但是没有进行提交。解决冲突后,提交即可 注意: 合并时 提示冲突。 此时git 对两个分支确实进行了合并,但是没有进行提交。解决冲突后,提交即可
行 116: 行 123:
  
  
-**分支管理:**+===== 分支管理 ===== 
  
 <code> <code>
blog/ease/git/git-basic7.1536586317.txt.gz · 最后更改: 03:41 - 09月02日 (外部编辑)