- Git Essentials(Second Edition)
- Ferdinando Santacroce
- 169字
- 2021-07-02 15:27:08
Branches are movable labels
We have seen in the previous sections how the commits are linked to each other by a parent-and-son relationship: each commit contains a reference to the previous commit.
This means that, for example, to navigate within a repository I cannot start from the first commit and try to go to the next, because a commit has no reference to who comes next, but to who comes first. By staying in our arboreal metaphor, this means that our tree is only navigable from leaves, from the extreme top of a branch, and then down to root-commit.
So, branches are nothing but labels that are on the tip commit, the last one. This commit, our leaf, must always be identified by a label so that its ancestors commits can be reached while browsing within a repository. Otherwise, we should remember for every branch of our repository the hash code of the tip commit, and you can imagine how easy it would be for humans.
- 企業(yè)數(shù)字化創(chuàng)新引擎:企業(yè)級(jí)PaaS平臺(tái)HZERO
- Python絕技:運(yùn)用Python成為頂級(jí)數(shù)據(jù)工程師
- 云計(jì)算環(huán)境下的信息資源集成與服務(wù)
- 商業(yè)分析思維與實(shí)踐:用數(shù)據(jù)分析解決商業(yè)問(wèn)題
- Access 2016數(shù)據(jù)庫(kù)技術(shù)及應(yīng)用
- Oracle 12c云數(shù)據(jù)庫(kù)備份與恢復(fù)技術(shù)
- 數(shù)據(jù)庫(kù)技術(shù)實(shí)用教程
- 金融商業(yè)算法建模:基于Python和SAS
- 探索新型智庫(kù)發(fā)展之路:藍(lán)迪國(guó)際智庫(kù)報(bào)告·2015(下冊(cè))
- IPython Interactive Computing and Visualization Cookbook(Second Edition)
- 區(qū)塊鏈技術(shù)應(yīng)用與實(shí)踐案例
- The Natural Language Processing Workshop
- Python 3爬蟲(chóng)、數(shù)據(jù)清洗與可視化實(shí)戰(zhàn)
- Practical Convolutional Neural Networks
- 數(shù)據(jù)庫(kù)技術(shù)與應(yīng)用:SQL Server 2008