在服务器上安装Git而不安装Git [英] Git over ssh without Git being installed on server
问题描述
我可以通过ssh和scp完全访问远程Linux服务器上的某个文件夹。我可以上传和下载文件,但不能安装应用程序。现在我想在此服务器上放置一个git存储库。
当我尝试从over scp复制的存储库中克隆时,我收到以下错误消息:
I have full access to some folder on a remote Linux server over ssh and scp. I can upload and download files but not install apps. Now I want to put a git repository on this server. When I try to clone from an over scp copied repository I get the following error message:
sgit-upload-pack: Command not found
fatal: The remote end hung up unexpectedly
使用相同的克隆来自Github的命令按预期工作。我需要在服务器上安装Git吗?如果是的话,有没有解决办法?
Cloning using the same command from Github works as expected. Do I need Git installed on the server? If yes, is there any work around?
推荐答案
我认为git需要在那里。但您可以将其安装在您有权访问的目录中。
I think that git needs to be there. But you can simply install it in the directory you have access to.
这篇关于在服务器上安装Git而不安装Git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!