- 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.
- Python數據挖掘:入門、進階與實用案例分析
- 信息系統與數據科學
- Live Longer with AI
- 數據化網站運營深度剖析
- 算法與數據中臺:基于Google、Facebook與微博實踐
- 軟件成本度量國家標準實施指南:理論、方法與實踐
- 數據庫程序員面試筆試真題庫
- 從0到1:JavaScript 快速上手
- 基于OPAC日志的高校圖書館用戶信息需求與檢索行為研究
- 深入淺出 Hyperscan:高性能正則表達式算法原理與設計
- SQL Server 2012數據庫管理教程
- Google Cloud Platform for Developers
- Oracle高性能SQL引擎剖析:SQL優化與調優機制詳解
- 活用數據:驅動業務的數據分析實戰
- 計算機視覺