You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
I couldn't push code into github with git-lfs hook on git push #333
changed the title [-]Uninstall git-lfs doesn't solve push problem to github.[/-][+]I couldn't push code into github with git-lfs hook on git push[/+]on May 26, 2015
Sorry for the trouble, you should be able to fix your pushes by removing the .git/hooks/pre-push file from your repository. This is where git is trying to run git lfs when you push.
We'll add some more documentation around uninstalling Git LFS as this is not very clear. Feel free to close this issue if this solves your problem, or if you run into any other problems just let me know how I can help. Thanks!
Blah, this sucks. Git LFS will put that file back. @Sobrr: If it keeps happening, you can probably get away with throwing a dummy pre-push hook in there.
However, why is Git LFS trying to push anything? It shouldn't even try to contact the Git LFS API unless you've committed some Git LFS pointers in that repo.
The problem, as I understand it, is that the git-lfs binary is uninstalled. The pre-push hook will always run, and if the git-lfs binary isn't there it will error out.
Oh right right. I was thinking of the larger issue. You shouldn't have to uninstall Git LFS just because not all of your repo remotes have support for it.
This problem is fixed as of #339, a new push hook is installed that will allow git to continue pushing when the git-lfs binary is missing. Thanks for the report!
I was having problems pulling even after deleting .git/hooks/pre-push. Then, I removed the global git configs that Git LFS sets up following instructions in #316 . I am posting this, in case it is not addressed with #339 .
@Sobrr Can you open a new issue with details on your problem? It looks like Git LFS is enabled, but you're hitting some error that I can't see in the screenshot. I'm locking this old thread issue from further updates though since it's a very different problem.
Activity
[-]Uninstall git-lfs doesn't solve push problem to github.[/-][+]I couldn't push code into github with git-lfs hook on git push[/+]rubyist commentedon May 26, 2015
Sorry for the trouble, you should be able to fix your pushes by removing the
.git/hooks/pre-pushfile from your repository. This is where git is trying to rungit lfswhen you push.We'll add some more documentation around uninstalling Git LFS as this is not very clear. Feel free to close this issue if this solves your problem, or if you run into any other problems just let me know how I can help. Thanks!
technoweenie commentedon May 26, 2015
Blah, this sucks. Git LFS will put that file back. @Sobrr: If it keeps happening, you can probably get away with throwing a dummy pre-push hook in there.
However, why is Git LFS trying to push anything? It shouldn't even try to contact the Git LFS API unless you've committed some Git LFS pointers in that repo.
rubyist commentedon May 26, 2015
The problem, as I understand it, is that the git-lfs binary is uninstalled. The pre-push hook will always run, and if the git-lfs binary isn't there it will error out.
technoweenie commentedon May 26, 2015
Oh right right. I was thinking of the larger issue. You shouldn't have to uninstall Git LFS just because not all of your repo remotes have support for it.
rubyist commentedon May 28, 2015
This problem is fixed as of #339, a new push hook is installed that will allow git to continue pushing when the git-lfs binary is missing. Thanks for the report!
shadowwalkersb commentedon May 30, 2015
I was having problems pulling even after deleting
.git/hooks/pre-push. Then, I removed the global git configs that Git LFS sets up following instructions in #316 . I am posting this, in case it is not addressed with #339 .Sobrr commentedon May 4, 2016
Hi @technoweenie, can you enable LFS for this "Sobrr" account?

It looks that we still couldn't have large files tracked.
technoweenie commentedon May 4, 2016
@Sobrr Can you open a new issue with details on your problem? It looks like Git LFS is enabled, but you're hitting some error that I can't see in the screenshot. I'm locking this old thread issue from further updates though since it's a very different problem.
technoweenie commentedon May 4, 2016
LOL, well I just realized you opened this issue. Everyone has LFS access on github since last October though.