我在 Red Hat Linux 服务器上安装了 GIT 用于集中存储库,并使用 HTTP 用户名和密码来控制来 self 们 Windows 笔记本的用户访问。
基于作为示例存储库提供的 testing.git 存储库,一切似乎都很好,但是当我尝试创建一个新存储库时,我在尝试克隆它时遇到错误。
C:\Users\kwkoh\messaging>git clone http://10.89.20.91/git/testing.git
Cloning into 'testing'...
remote: Counting objects: 36, done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 36 (delta 9), reused 0 (delta 0)
Unpacking objects: 100% (36/36), done.
Checking connectivity... done.
在 Linux 服务器上,我使用以下命令创建了新的存储库
[git@a0110tapidev01 repositories]$ git init --bare --shared messaging_v1.git
Initialized empty shared Git repository in /home/git/repositories/messaging_v1.git/
C:\Users\kwkoh\messaging>git clone http://10.89.20.91/git/messaging_v1.git
Cloning into 'messaging_v1'...
****fatal: remote error: FATAL: R any messaging_v1 edmund DENIED by fallthru
(or you mis-spelled the reponame)**
**
因为我没有使用 SSH,所以我相信我不需要 ssh-keygen 相关的步骤。我是否遗漏了 /home/git/repositories/messaging_v1.git/
中这个新存储库的任何配置步骤?
谢谢。
最佳答案
请注意,当您在使用 gitolite 管理的 git 存储库托管服务器中创建自己的裸存储库时,表示 gitolite 没有机会添加 its hooks .
如前所述in this section :
If you add new hooks to this, you must run
gitolite setup
, or at leastgitolite setup --hooks-only
.
尝试至少运行 gitolite setup --hooks-only
以查看 repo 是否被正确记录。
如果还不够,运行 gitolite setup
。
关于GIT Smart Http - R 任何被 fallthru 拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38632852/