繁体   English   中英

无法将git repo推送到远程服务器

[英]Can't push git repo to remote server

从头开始,在我的Windows工作站上安装git,并按照http://git-scm.com/book/en/Git-on-the-Server-Getting-Git-on-a-Server上的说明进行设置我的裸露回购 能够使用git Bash将文件scp到我的托管服务器,但是当我将orign服务器添加到repo并尝试推送时我得到了这个:

Pushing to user@host:/home/user/git/project.git
jailshell: git-receive-pack: command not found
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists. 

谢谢你的帮助。

您的服务器上没有安装git。

请参阅服务器上是否需要使用git才能使用它? 寻求可能的解决方案。

确保设置了路径,以便git-receive-pack二进制文件位于路径中。 尝试打开命令提示符/ sshing到您的服务器并运行git-receive-pack

如果它根本没有安装,请使用[package-manager install-command] git git在服务器上[package-manager install-command] git (其中package-managerapt-getyum等,通常安装install-command

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM