gpt4 book ai didi

Git 外壳 : git-shell-commands should exist rather than "What do you think I am? A shell?"

转载 作者:太空狗 更新时间:2023-10-29 13:10:24 24 4
gpt4 key购买 nike

我正在尝试按照 this document 中的描述在 Ubuntu 12.04 上设置我的 git 服务器.我的 ssh key 工作正常,我已经将 git 帐户的 shell 更改为使用 /usr/bin/git-shell

根据文档,我现在应该看到“你认为我是什么?一个 shell?”,然而,实际上我看到的是 ubuntu 通常的 shell 介绍,后面是以下内容:

fatal: Interactive git shell is not enabled.
hint: ~/git-shell-commands should exist and have read and execute access.

据我所知,如果我要解决那里的目录问题,我只会得到一些 git 提示,而不是我正在寻找的消息。

最佳答案

Git 1.7.4 只是改进了 git-shell 的功能,所以现在它以不同的方式呈现自己。另见 https://github.com/git/git/commit/e69164ddb9d6092a94915bb984749d48f598cea8

您已按照文档中的说明正确设置了服务器。

关于Git 外壳 : git-shell-commands should exist rather than "What do you think I am? A shell?",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14833746/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com