Git 深入理解
從知乎上看到有人推薦這篇文章深入理解GIT, 因爲GIT看起來功能很多,其實原理很簡單。
GIT from the Bottom up
https://jwiegley.github.io/git-from-the-bottom-up/1-Repository/5-the-beauty-of-commits.html
重點:
[list]
[*]文件是blob, 相同內容hash一樣
[*]tree, 包含幾個文件,通常包含在提交裏面
[*]tree也可以包含其他tree
[*]提交包含的是tree,和描述
[*]提交可以有多個parent --這個相當於直接merge
[*]每個parent當然可以有多個提交,就成了分支
[*]所謂分支和tag都是commit, 就是一串tree的疊加
[/list]
GIT from the Bottom up
https://jwiegley.github.io/git-from-the-bottom-up/1-Repository/5-the-beauty-of-commits.html
重點:
[list]
[*]文件是blob, 相同內容hash一樣
[*]tree, 包含幾個文件,通常包含在提交裏面
[*]tree也可以包含其他tree
[*]提交包含的是tree,和描述
[*]提交可以有多個parent --這個相當於直接merge
[*]每個parent當然可以有多個提交,就成了分支
[*]所謂分支和tag都是commit, 就是一串tree的疊加
[/list]
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
git常用命令小計
wchyumo2009
2020-07-08 12:20:37
centos7源碼安裝kong分佈式網關實踐
一: 安裝openssl和pcre yum -y install pcre-devel openssl openssl-devel 安裝git yum install git -y
幽默龙
2020-07-08 12:31:24
Desire rom - build kernel
dkyang
2020-07-08 12:22:51
八、SpringCloud——Config 分佈式配置中心Demo
仁钦宝
2020-07-08 11:45:52
centos 7 下 gitlab-runner 自動 CI/CD (持續集成/持續部署) 配置
你个大猪蹄子
2020-07-08 11:16:39
Gerrit status Merge conflict 解決
liuskyter
2020-07-08 11:16:26
git 本地庫的操作
yue_zhong
2020-07-08 11:09:17
idea配置Git上傳代碼到Gitlab
leo_gothic
2020-07-08 10:42:16
Git::取消跟蹤文件&&重新跟蹤
取消跟蹤文件&&重新跟蹤 如果修改了.gitignore文件,那麼需要進行如下操作: git rm -rf --cached . git add ./*
dieju8330
2020-07-08 10:35:13
[轉載]::Github進行fork後如何與原倉庫同步
dieju8330
2020-07-08 10:35:13
git異常:fatal: 'idea-line-2' is not a commit and a branch 'idea-line-2' cannot be created from it
創建分支並且拉去遠程同步分支的過程中出現該異常: fatal: 'idea-line-02' is not a commit and a branch 'idea-line
Danny_idea
2020-07-08 09:57:37
gitignore的使用
ynd_sg
2020-07-08 09:20:23
git克隆或下載倉庫中的某一個文件夾
ynd_sg
2020-07-08 09:20:23
Git 實用命令--持續更新
Joker_PL
2020-07-08 09:11:56