Your SlideShare is downloading. ×
Git LFSを触ってみた
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Git LFSを触ってみた

90
views

Published on

最近でたGitLFSを触ってみたので、共有

最近でたGitLFSを触ってみたので、共有

Published in: Technology

0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
90
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
4
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Git LFSを触ってみた 鈴木雄登
  • 2. 自己紹介 • 名前:鈴木雄登(@moc_yuto) • 経歴:Python→Java & ObjC
     →Scala
  • 3. Git LFSって? Git Large File Systemの略
  • 4. Git LFSって? GitHubが発表
  • 5. Git LFSって? • オーディオ、動画、データ集、グラフィックなどの 大きなファイルをGitで扱うためのソフトウェア • Gitのプラグイン
  • 6. 何がいい? • Git:全てのファイルの差分を取る
 全てのファイルがレポジトリに格納される • GitLFS:巨大なファイルは、LFSに格納する
 巨大なファイルは参照だけが格納される GitLFSを使うと、素早い差分計算ができる。
  • 7. 他の利点 • リポジトリスペースをもっと効率よく使える(Git はサイズ制限がある) • CloneとFetchを素早くできる • 通常のGitFlowと同じように使える
  • 8. 実際に導入してみる
  • 9. ダウンロード https://git-lfs.github.com/
  • 10. インストール ダウンロードしたソースを たったこれだけ!
  • 11. 使い方 1,まずでかめのファイルを追加 2,対象のファイルをトラックさせる 3,こんな感じに設定が追加される
  • 12. 使い方 4,git lfsサーバを設定 こんな感じで.git/configに書き込む 5,あとはいつもどおり、PUSH! [lfs] url = “http://localhost:8080/{user}/{repo}”
  • 13. GitHubへの対応
  • 14. GitHubへの対応 待ちましょうw
  • 15. かわりに リモートサーバを 自分で立ててみる
  • 16. lfs-test-server ここからダウンロード https://github.com/github/lfs-test-server 1,go get github.com/github/lfs-test-server 2,バイナリをダウンロード 3,./lfs-test-server
  • 17. lfs-test-server ここからダウンロード https://github.com/github/lfs-test-server 1,go get github.com/github/lfs-test-server 2,バイナリをダウンロード 3,./lfs-test-server これだけなのに 動かない。。。
  • 18. やり方を変更 1,GitHubからソースをダウンロード 2,ディレクトリ直下でgo get 3,config.goを書き換える 4,ディレクトリ直下でgo build 5,作成された./lfs-test-serverで実行 6,http://localhost:8080/mgmtにアクセス
  • 19. Basic認証を通過するとこんなページが開きます。
  • 20. ユーザ追加
  • 21. git pushすると。。 こんな感じで追加されていきます。
  • 22. ただ肝心のファイルが。。
  • 23. エラーで アップロードできない。。
  • 24. ということで、 仕組みだけ説明しようと思います。
  • 25. Git LFS serverGit server local sshでPUSH httpsでPUSH PATHのみ
  • 26. 今回動かせなかったところ
  • 27. Git LFS serverGit server local sshでPUSH httpsでPUSH PATHのみ
  • 28. 所感 • 大々的に打ち出したにしては、結構普通なことをやっ ている。 • git自体レポジトリサイズの制限があるので、それ を超えられるのはありがたい。

×