LoginSignup
20
23

More than 5 years have passed since last update.

[Git LFS][Gitlab][Windows] Git LFSの環境作成

Last updated at Posted at 2017-05-16

Git LFSの環境作成方法メモ

環境作成

Git for Windows のインストール

Git本体として、本記事では Git for Windows をインストールします。

Git for Windows

Git LFS のインストール

Git LFS はGit標準機能ではないため、別途インストールする必要があります

Git Large File Storage | Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.

git-lfsの初期設定
$ git lfs install

既存のGit LFSを使用したリポジトリのクローン

$ git lfs clone <gitリポジトリ>

TODO: 公式ドキュメントではSSH経由でのクローンが出来ると記載されているが、どうもできない様子(503エラーになる)

使用方法

特定の拡張子のトラッキング

特定の拡張子のトラッキング
$ git lfs track "*.so"

Git LFSの管理対象の確認

$ git lfs ls-files

参考

Git LFS - GitLab Documentation
GitLab Git LFS Administration - GitLab Documentation

20
23
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
23