Git-lfs: Error when trying to push commit with delete file

Created on 18 Feb 2016  路  4Comments  路  Source: git-lfs/git-lfs

I was able to get git-lfs running on my private git repo. And I was able to push a 300 or so MB .psd file without issue. Next I tried deleting the file locally, and pushing that delete, but now i'm getting the following error:

nThis 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.n

Any thoughts on what to do? I already deleted my HEAD branch to fix the fact that git lfs didn't know what to do with the ref.

Most helpful comment

I delete .git/hooks/pre-push in my local repository and it worked for me

All 4 comments

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

Make sure that git-lfs is in the $PATH for whatever user is running the git command. You can see what script is running by looking at the .git/hooks/pre-push file.

So seems if I do "git push origin master" through the terminal it will run properly, however running through sourcetree's UI (clicking push button) doesn't work. Seems to be a sourcetree issue.

I delete .git/hooks/pre-push in my local repository and it worked for me

Thanks @chocolim It worked for me also

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matheussampaio picture matheussampaio  路  4Comments

kervin521 picture kervin521  路  4Comments

Vdragon picture Vdragon  路  3Comments

WesWedding picture WesWedding  路  3Comments

MaxiMax07 picture MaxiMax07  路  3Comments