Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
巨大リポジトリはパーシャルクローンしようね。
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
えび
May 22, 2025
28
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
巨大リポジトリ はパーシャルクローン しようね。
えび
May 22, 2025
More Decks by えび
See All by えび
XcodeのLLDB(ブレークポイント)に入門する
ebibibibibi
0
51
インタプリタ言語が 実行環境の差異を 吸収する仕組みを あさーく理解する
ebibibibibi
0
83
CocoaPodsはなぜRuby製か
ebibibibibi
1
200
通勤をゆたかにする技術 ~通勤中に耳でSwiftを学んだら5kg痩せて精神が安定した話~
ebibibibibi
0
230
丸め誤差発生の仕組みと向き合い方
ebibibibibi
0
150
バブルソートでPHPに入門する
ebibibibibi
0
170
影響範囲調査をする技術
ebibibibibi
0
160
Featured
See All Featured
A Soul's Torment
seathinner
6
3k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
201
75k
Six Lessons from altMBA
skipperchong
29
4.3k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
The Limits of Empathy - UXLibs8
cassininazir
1
370
Done Done
chrislema
186
16k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
190
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
370
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
150
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.6k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Transcript
巨大リポジトリ はパーシャルクローン しようね。 #02 札幌開催:はじめてのIT勉強会 in 札幌(2025) えび(@025cm)
クローンの種類 • フルクローン • シャロークローン • パーシャルクローン
フルクローン • たぶんいつもみなさんがやっているやつ。 • すべての履歴・すべてのファイルをローカルに丸ごとコピーす ること。
シャロークローン • 履歴を深さ(=commitの数)で制限してクローンするモードの こと • 取得した履歴の範囲内でしか、歴史を操ることができない
パーシャルクローン • コミットとツリーだけをダウンロードして、 「ファイルの中身 (ブロブ)」は持ってこないモード • 履歴操作もできる!!
blob オブジェクト • blobとは Gitのオブジェクトの1種で、「ファイルの中身そのも の」を保存しているもの • Binary Large OBject
の略で、git add 実行時に .git/objects 配 下へ作成される
commitオブジェクト • commit は、「この時点でのスナップショットはこのtreeだっ た」と記録するオブジェクト。 • 中身は:tree のハッシュ(=どの構造・内容だったか)・親の commit(履歴をつなぐ)・作者・日付・メッセージ
tree オブジェクト • ある時点のディレクトリ構成(フォルダ・ファイルの階層)を 表すGitオブジェクト。 • 中身は「ファイル名・パーミッション・それが指すblobやtree オブジェクトのハッシュ値」
構造のイメージ
Gitは「差分」ではなく 「スナップショット」
blobがなにかを知っていれば、 自然な発想でパーシャルクローンは出てきそう。 基礎は大事ですね
さいごに • パーシャルクローン最強説。 • シャロークローンの勝ちポイントをよくわかってない。なにか 思いつくところがあったら教えて欲しい!