我有一个奇怪的问题。我使用 TortoiseGIT (Win7) 并且我的存储库放置在虚拟服务器 (Debian) 上,我使用 gitolite 和 SSH key 。
我可以 clone
存储库到我的 PC,我可以运行 Fetch
, Push
, Commit
, Sync
.. 一切,但在尝试时 Pull
来自服务器的更改 Pushed
由其他贡献者,出现以下错误:
git.exe pull -v --progress "origin"
fatal: 'pull' appears to be a git command, but we were not
able to execute it. Maybe git-pull is broken?
git did not exit cleanly (exit code 128)
我不明白,为什么只是
pull
命令不起作用..感谢您的帮助。我可以使用贡献的更改克隆存储库 .. 但不能
Pull
在我的 PC 上创建的存储库的更改。
最佳答案
错误消息与 Git 非常相关,来自 help.c
:
static const char bad_interpreter_advice[] =
N_("'%s' appears to be a git command, but we were not\n"
"able to execute it. Maybe git-%s is broken?");
这类似于 issue 40 (另一个 GUI,这里是 terminal-ide )。
在那种情况下,这是由于远程 Git 安装造成的,即 不完整
( Comments 3 of issue 19 )
git-merge was also missing from install, can be fixed with
$> ln -s git git-merge
in
system/bin/
分辨率可能与您的情况不完全相同,但可能与 Git 安装错误有关。
关于gitolite - 拉不工作 - TortoiseGIT/Windows 7/Debian + gitolite 上的 GIT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10253395/