3

我正在使用 Windows Git GUI。当我尝试获取源时,它向我显示了一条成功消息。

但是,当我尝试将某些内容推送到原点时,会显示此错误消息:

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"

我无法找到.git/hooks/pre-push并删除它。

我该如何解决这个问题?

4

2 回答 2

1

我确实删除了本地存储库中的 .git/hooks/pre-push.sample 并且它有效。

我还从远程存储库中删除了相同的文件

于 2016-04-06T13:13:59.550 回答
0

您正在尝试使用:
https ://git-lfs.github.com/

而且您的本地存储库找不到它。

这个问题有一张未解决的票:
在您的路径上找不到“git-lfs”:
https ://github.com/github/git-lfs/issues/853

于 2016-01-12T11:09:04.967 回答