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.
$ 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.
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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With