Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

This repository is configured for Git LFS but 'git-lfs' was not found on your path

Tags:

git

github

Please help me understand what the below error message means and how to comply with its request.

I want to copy an existing local git repo; then push that copy to a newly created remote.

But I get the following error:

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.

The code I used immediately prior to getting this message is:

# create new git repo at https://github.com/username/foo-bar.git cp -r OldProject/ NewProject/ cd NewProject/ git remote remove origin # Remove prior origin from copy operation git init git remote add origin https://github.com/username/foo-bar.git git add -A git commit -m "first commit" git push -u origin master 

What am I doing wrong and how can I fix it? Please help me understand what the above error message means and how to comply with its request.

like image 495
Let Me Tink About It Avatar asked Apr 25 '16 18:04

Let Me Tink About It


People also ask

Is git LFS installed by default?

$ git lfs install Git LFS initialized. You'll only need to run git lfs install once. Once initialized for your system, Git LFS will bootstrap itself automatically when you clone a repository containing Git LFS content.

Where are git LFS stored?

Git LFS stores the binary file content on a custom server or via GitHub, GitLab, or BitBucket's built-in LFS storage. To find the binary content's location, look in your repository's . git/lfs/objects folder.


1 Answers

This repository is configured for Git LFS but 'git-lfs' was not found on your path

LFS is "Large File Storage," an extension for git that keeps large files outside of the actual repository so it doesn't become slow. When the error says "not found on your path," it means git was looking for a program that you don't have installed. You can install it using the instructions on https://git-lfs.github.com/.

A hook, by the way, is a bit of code git runs when you do some action. They are stored in the repository, in the hidden directory .git/hooks.

like image 99
Dan Avatar answered Sep 18 '22 12:09

Dan