1
1

More than 3 years have passed since last update.

Git LFSが見つからないときの対処法

Posted at

git push時にエラーメッセージ

以下のメッセージが出た時の対処法です

This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.

error: failed to push some refs to 

とにかくインストール

  1. 公式サイトからダウンロード
  2. ダウンロードしたのちに以下のコマンドを実行
git lfs install

以上で完了です。
installではダウンロードしたgit-lfsを/usr/local/bin/に移動しています。

GIT LFSとは

動画などの大容量ファイルを扱うための拡張機能のようです。
大容量ファイル自体はリモートサーバーに格納し、
Gitではメタ情報だけを管理する仕組みですね。

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