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.2k
定量データと定性評価を用いた技術戦略の組織的実践 / 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
人間はどの意思決定を手放せるのか
kawasima
15
7.5k
映像変換サーバーなしで端末内でHLSを生成してライブ配信
hikarusato
0
130
え、こんなに早く改修できるの?──新人エンジニアとスクラムマスターの2人が語る、AI×アジャイル開発の現場
ysasago
2
520
白金鉱業Meetup Vol.25 アウトカムが二値のデータに対するCausal Impact
brainpadpr
0
250
おい、エージェントを使って終わらせろ
nwiizo
2
740
ADKで始める業務改善 - AIエージェント開発時の考えと設計
harappa80
2
240
品質と信頼性を地続きにする
grimoh
2
820
目の前の楽しいが人生を変える - コミュニティの螺旋の歩き方と楽しむコツ / change your life
soudai
PRO
5
650
2026-09-18 gotanda.sre Terraformで複数環境作ったり、複数Stateに分割したりそれとTerragrunt / Terraform multi envs and multi states
masasuzu
3
590
アクセスキーこわい やめかたと漏らさない工夫
sassssan68
1
470
CLIライブラリ開発を支える技術
htnabe
0
140
バイブコーディング時代のWebアプリ開発入門~Cloud Runで学ぶセキュアなビルドとデプロイ
waiwai2111
1
140
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
430
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
580
Ruling the World: When Life Gets Gamed
codingconduct
0
340
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
240
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.8k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Optimising Largest Contentful Paint
csswizardry
37
4k
A designer walks into a library…
pauljervisheath
211
25k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
390
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
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