【问题标题】:About Git GUI push Error关于 Git GUI 推送错误
【发布时间】:2016-01-12 10:47:00
【问题描述】:

我正在使用 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 并将其删除。

我该如何解决这个问题?

【问题讨论】:

    标签: git git-gui git-lfs


    【解决方案1】:

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

    我也从远程存储库中删除了同一个文件

    【讨论】:

      【解决方案2】:

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

      而您的本地存储库没有找到它。

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

      【讨论】:

        猜你喜欢
        • 2012-07-27
        • 2016-08-10
        • 2011-02-23
        • 2023-03-16
        • 2011-05-11
        • 2016-06-06
        • 2013-03-17
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多