log4life

应无所住而生其心

凡所有相,皆是虚妄。若见诸相非相,即见如来



最近更新

翻译列表‎ > ‎

00-GitFromBottomUp-GIT深入浅出

Git from the bottom up 

by John Wiegley
translate by Simon Liu <yuntao.liu@gmail.com>

In my pursuit to understand Git, it's been helpful for me to understand it from the bottom up — rather than look at it only in terms of its high-level commands. And since Git is so beautifully simple when viewed this way, I thought others might be interested to read what I've found, and perhaps avoid the pain I went through finding it. I used Git version 1.5.4.5 for each of the examples found in this document.

Contents

1. License
2. Introduction
3. Repository: Directory content tracking
    Introducing the blob
    Blobs are stored in trees
    How trees are made
    beauty of commits
    A commit by any other name…
    Branching and the power of rebase
4. Index: Meet the middle man
    Taking the index farther
5. To reset, or not to reset
    Doing a mixed reset
    Doing a soft reset
    Doing a hard reset
6. Last links in the chain: Stashing and the reflog
7. Conclusion
8. Further reading

GIT 深入浅出 

作者 John Wiegley

译 刘金雨 <yuntao.liu@gmail.com>


在我对Git的理解和学习过程中,使用从下而上的方法去理解,而不是仅仅关注其经过封装后的高级命令,这对我的帮助很大。当从这个角度去看Git的时候,它是如此的简单、美妙,我想其他人可能也会对我所发现的这一点感兴趣,也许能够避免我在此过程中所经历的痛苦。本文档中,我都是采用Git 1.5.4.5版本来做的演示。


目录

1. 协议

2. 介绍

3. 版本库:目录内容跟踪

     引荐blob

    存储在tree中的blob

     tree是从何而来 

     commit之美 

     commit的其它名字

     分支和强大的rebase 

4. Index:与中间人会面

     进一步理解Index

5. 重置之困

     混合重置

     软重置

     硬重置

6. 链条的最后一环:stashing和reflog 

7. 总结 

8. 进一步的参阅