LoginSignup
1
1

More than 5 years have passed since last update.

Git Large File Storageを使えるようにする

Posted at

OS: Windows10

Git for Windows ( https://git-for-windows.github.io/ ) と
Git Large File Storage ( https://git-lfs.github.com/ )をダウンロードしてインストールしておく


まずはGitの設定

$ git config user.name "[username]"
$ git config user.email "[hoge@mail]"

SSHキーを作成する

$ ssh-keygen

できたファイルid_ira.pubをエディタで開き、中身をコピーしてGithubのSSHに登録

Git LFSのインストール

$ git lfs install

例としてpsdファイルのトラック

$ git lfs track "*.psd"

addしてcommitしないとうまくいかないのでこれらを実行

$ git add [filename.psd]
$ git commit -m "[message]"

トラックできているかの確認

$ git lfs ls-files
// 指定ファイルがリストに出てくることを確認する

あとは普通にgitを使う
※たぶん上限は100.00MBなのでそれ以上のファイルはどのみち使えない

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