4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Git LFSを利用するための備忘録

Last updated at Posted at 2017-06-19

Git LFSについてはこちら
https://git-lfs.github.com/

上記サイトからダウンロードすることもできますがbrewを利用してインストールしていきます。

Git LFSインストール

$ brew install git-lfs
$ git lfs install

バージョン確認

$ git lfs version

Git LFSで管理したいファイルの設定

$ git lfs track “*.psd”
$ git lfs track “*.ai”

→リポジトリ内に.gitattributesが作成される

GitLFS設定の確認

$ git lfs track
Listing tracked patterns
    *.psd (.gitattributes)
    *.ai (.gitattributes)

LFS管理対象の確認

$ git lfs ls-files
xxxxxxxxxx * sample_20170616.ai

設定できたらコミット、プッシュはいつもどおりでOK。

4
4
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
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?