无法将git repo推送到远程服务器 [英] Can't push git repo to remote server

查看:200
本文介绍了无法将git repo推送到远程服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

 推送到用户@主机:/home/user/git/project.git 
jailshell:git-receive-pack:找不到命令
致命:无法从远程存储库读取。

请确保您拥有正确的访问权限
并存在存储库。

感谢您的帮助。

解决方案

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

请参阅 git是否需要存在于服务器上才能使用它?以获得可能的解决方案。


Starting from scratch, setup git on my Windows workstation and have been following the instructions on http://git-scm.com/book/en/Git-on-the-Server-Getting-Git-on-a-Server to setup my bare repo. Was able to scp the files to my hosted server using git Bash, but when I add the orign server to the repo and try to push I get this:

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. 

Thanks for your help.

解决方案

You have no git installed on your server.

Please see Does git need to be present on a server to use it? for a possible solution.

这篇关于无法将git repo推送到远程服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆