Upgrade to Pro — share decks privately, control downloads, hide ads and more …

なぜGitでバイナリファイルをおいてはいけないかGitの内部構造から考える

Takeshi Kondo
September 05, 2017

 なぜGitでバイナリファイルをおいてはいけないかGitの内部構造から考える

Takeshi Kondo

September 05, 2017
Tweet

More Decks by Takeshi Kondo

Other Decks in Technology

Transcript

  1. ςΩετϑΝΠϧͷ৔߹ $ 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 > Ҏ߱͸σϞͰʂ
  2. େ༰ྔϑΝΠϧΛߋ৽ͯ͠ΈΔ $ 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) > Ҏ߱͸σϞͰʂ
  3. 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