Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
なぜGitでバイナリファイルをおいてはいけないかGitの内部構造から考える
Search
Takeshi Kondo
September 05, 2017
Technology
3.4k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
なぜGitでバイナリファイルをおいてはいけないかGitの内部構造から考える
Takeshi Kondo
September 05, 2017
More Decks by Takeshi Kondo
See All by Takeshi Kondo
SREの知識地図 - 第2章の紹介 - / Knowledge Map of SRE – Introduction to Chapter 2 –
chaspy
0
110
SRE NEXT CfP チームが語る 聞きたくなるプロポーザルとは / Proposals by the SRE NEXT CfP Team that are sure to be accepted
chaspy
2
1.8k
Slack Platform(Deno) での RAG 実装 - LangChain(js) を使ってみた / rag-implementation-on-slack-platform-deno-experimenting-with-langchain-js
chaspy
0
330
SRE の考えをマネジメントに活かす / applying SRE ideas to management
chaspy
7
8.4k
RAGの簡易評価によるフィードバックサイクル実践 / Feedback cycle practice through simplified assessment of RAGs
chaspy
2
6.1k
定量データと定性評価を用いた技術戦略の組織的実践 / Systematic implementation of technology strategies using quantitative data and qualitative evaluation
chaspy
9
2.4k
エンジニアブランディングチームの KPI / KPI's of engineer branding team
chaspy
2
2.6k
「SLO Review」今やるならこうする / If I had to do the "SLO Review" again
chaspy
3
2.5k
開発者とともに作る Site Reliability Engineering / SREing with Developers
chaspy
10
9.2k
Other Decks in Technology
See All in Technology
AIに丸投げしないトイル削減 / Eliminating Toil Without Leaving It All to AI
kohbis
4
1.1k
Adaptive Warehouse を今すぐ導入すべき理由と迷ったときの判断基準
__allllllllez__
0
200
2026/09/10 Spring Bootから Jakarta EE/MicroProfileへの移行
megascus
0
350
AI時代の「技術的負債」の変質ー概念の終焉と再解釈、エージェントと共に向かう先
nwiizo
0
550
ペアプロの価値はコードを書くことだけじゃない
codmoninc
PRO
0
210
アリアドネの糸と、20年ごとの建て替え ── 長尾真『電子図書館』を、伊勢で読み直す / Rereading Makoto Nagao’s "Electronic Library" in Ise
ykiyota
0
160
「図書館」という名前のままでいいのか -Code4Lib JAPANカンファレンス2026 アンカンファレンス報告- / Code4Lib JAPAN Conference 2026: Unconference Report
ykiyota
0
170
DEFCON_CHV_CTF_Write-up.pdf
bata_24
0
140
NW運用でNWトポロジ可視化ツールに期待すること/shumoku-meetup1
corestate55
2
120
Omarchy Quattro の日本語設定周り
simosako
2
160
アプリをもっと"iOSアプリっぽく"する小さな工夫 / Small Touches That Make Your App Feel More Like an iOS App
matsuji
1
700
リージョンの壁を越える、 ちょっと変わったAWSサービスの話
falken
PRO
1
310
Featured
See All Featured
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
570
Mind Mapping
helmedeiros
1
350
4 Signs Your Business is Dying
shpigford
187
23k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.7k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
490
How Software Deployment tools have changed in the past 20 years
geshan
1
34k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
67k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
GitHub's CSS Performance
jonrohan
1033
470k
Transcript
ͳͥGitͰόΠφϦϑΝΠ ϧΛ͓͍͍͚ͯͳ͍͔ Gitͷ෦ߏ͔Βߟ͑Δ 2017/08/31 kondo takeshi
Git͓͡͞Μ
΅͘ʮ͜Εยํ͍Βͳ͘ͳ͍ʁ ফͦ͏Αʯ ͱ͋ΔHJUϦϙδτϦ @QBUDI @QBUDI
ޙഐ͘Μʮ͑ʔʁফ͢ΜͰ͢ ͔ʔʁԿ͔ා͍ͬ͢oldͰ͍͍ Ͱ͔͢ʔʁʯ
΅͘ʮGit͕֮͑ͯͯ͘ΕΔ͔ Βʂʂʂʂʂʂoldͱ͔Ί Ζʂʂʂʂʂʂʂʂʂʂʯ
ͳΜͱ͔खॱॻ_draft.docx
΅͘ʮdraftϒϥϯνͬͯ ΕΑʂʂʂʂʂͬ͞͞ͱ rename͠Ζʂʂʂʂʂʯ
νʔϜͷGitྗ্͕՝ • GitϑΝΠϧαʔό͡Όͳ͍ʂʂʂ • masterpushΊΖʂʂʂ • खॱॻϨϏϡʔϓϩηεΛMRͰΓ͍ͨɻɻ • ->ͭ·Γdiff͕͏·͘ग़ͳ͍WordΛ͜Ζ͢
$ git init > Initialized empty Git repository in /Users/take/
gitlab/.git/
$ ls .git > HEAD config description hooks info objects
refs
.gitɺ͋Γ·͢Ͷʁ
.gitɺ͋Γ·͢Α
.git • Gitͯ͢ͷཧใΛ.gitҎԼʹू • .gitͷதΛݟ͍ͯ͘͜ͱͰɺͲ͏ͬͯόʔ δϣϯཧΛ࣮ݱ͍͔ͯ͘͠ݟ͍ͯ͘
gitͷΦϒδΣΫτ CMPC ϑΝΠϧͷσʔλ USFF CMPCͷࢀরͱɺ ֊ͷσΟϨΫτϦใ DPNNJU มߋ࣌ͷϝλσʔλͱɺ USFFͷࢀর UBH
DPNNJUͷࢀর
gitͷΦϒδΣΫτ GitӳจϚχϡΞϧΛಡΉͨΊͷ༧උࣝ http://tokkonopapa.github.io/blog/2012/01/17/prior-knowledge-for-git-manual/
ςΩετϑΝΠϧͷ߹ $ echo "hello git" > hello_git.txt $ git add
hello_git.txt $ git commit -m "hello git” [master (root-commit) aaa6ce7] hello git 1 file changed, 1 insertion(+) create mode 100644 git_test/hello_git.txt > Ҏ߱σϞͰʂ
όΠφϦϑΝΠϧͷ߹ ը૾ϑΝΠϧͷมߋ > Ҏ߱σϞͰʂ https://pixlr.com/editor/
εφοϓγϣοτΜʂ ࠩཧ͡Όͳ͍Μʂ
git gc
git-gcͱpackfile • git-gcʹΑΓطଘͷΦϒδΣΫτআ͞Εɺ pack-*.idxͱpack-*.packϑΝΠϧ͕ੜ • ͨͿΜ͜͜Ͱdeltaѹॖͯ͠Δ
େ༰ྔϑΝΠϧΛߋ৽ͯ͠ΈΔ $ sec 1 10000000 > sec.txt $ git gc
Counting objects: 18, done. Delta compression using up to 4 threads. Compressing objects: 100% (14/14), done. Writing objects: 100% (18/18), done. Total 18 (delta 3), reused 11 (delta 0) > Ҏ߱σϞͰʂ
όΠφϦϑΝΠϧͷԿ͕μϝʁ • ୯ʹdiff͕ݟΕͳ͍ • merge࣌ʹconflict͢Δͱࢮ͵ • ͕ࠩଟ͘ग़ΔՄೳੑ͕͋ΔͷͰɺpackʹΑ Δѹॖޮ͕ѱ͍
·ͱΊ • ຊʹ͍͚ͯ͠ͳ͍ͷʮڊେόΠφϧϑΝΠϧʯ ͷadd • -> Git LFSͲ͏ͧ • commitεφοϓγϣοτ(blog)Λੜ͠ɺpackͰ
ࠩอଘʹΑΔѹॖ • ͦΕҎ֎શͯࢀরͷϦϨʔ
͓·͚ɿWordόΠφϦͱ͍ ͏Θ͚Ͱͳ͍ • Wordͷதzip͞Εͨxml • ͔ͩΒgitͰdiffͱΔͱԿ͔͠Βݟ͑Δ • ࢀߟɿWord͞Μࠓ͓͔ͭΕͰ͢ • http://qiita.com/kaityo256/items/
c15889dbb7acb2632c6e
Reference • ΤϯδχΞͷͨΊͷGitͷڭՊॻʦ্ڃฤʧ Git෦ͷΈΛཧղ͢Δ • https://www.amazon.co.jp/exec/obidos/ASIN/B01AAIN85K/ takeshe11-22/ • ʮΤϯδχΞͷͨΊͷgitڭՊॻʯ͔Βgitͷ෦ߏΛֶͿɹ࣮ફฤͦͷ1 •
http://take-she12.hatenablog.com/entry/2017/08/10/120000 • ʮΤϯδχΞͷͨΊͷgitڭՊॻʯ͔Βgitͷ෦ߏΛֶͿɹ࣮ફฤͦͷ2 • http://take-she12.hatenablog.com/entry/2017/08/12/120000