Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

About Git GUI push Error

I am using Windows Git GUI.When I tried to fetch the origin, it displayed a success message to me.

However when I tried to push something to origin, this error message displayed:

Pushing to git@<local IP>:/home/git/.git/
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.

error: failed to push some refs to 'git@<local IP>:/home/git/.git/'
Error: Command Failed"

I cannot locate .git/hooks/pre-push and delete it.

How can I fix this issue?

like image 560
ANO Avatar asked Jan 26 '26 00:01

ANO


1 Answers

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

I also delete the same file from the remote repository

like image 91
Chocolim Avatar answered Jan 28 '26 16:01

Chocolim