I'm using github for windows with git-lfs, committed the changes to the local branch which were done successfully, then gave an error after i tried to sync to the remote. Trying pushing my changes from the git shell and this error came up
error: cannot spawn .git/hooks/pre-push: No such file or directory
error: waitpid for .git/hooks/pre-push failed: No child processes
I then pushed by
git push --no-verify
it did get pushed but I tried downloading the files and they gave a 404 error. Any change that i commit gives the same error of the pre-push hook.
Found the solution. Deleted the pre-push hook in the .git/hooks folder Installed git lfs again. Issue was fixed.
Run git lfs update --force to override corrupted 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