【发布时间】:2013-03-10 01:19:43
【问题描述】:
从头开始,在我的 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.
感谢您的帮助。
【问题讨论】:
-
你推送的命令是什么?
-
不,不完全是。我最初建立了一个名为“杂货店”的本地仓库。说明说要创建一个新的裸仓库,我这样做了,称为“grocery.git”。这是我上传到我的服务器的。
-
如果我 gitBash 到 /grocery 目录并运行“push origin master”,我会收到上面的错误。如果我从我的“grocery.git”目录运行它,它会显示“一切都是最新的”。 @forival: $ git remote add origin git@gitserver:/opt/git/project.git $ git push origin master
标签: git