Cygwin和gitolite 3.如何在Windows上设置它? [英] Cygwin and gitolite 3. How to set it up on windows?

查看:264
本文介绍了Cygwin和gitolite 3.如何在Windows上设置它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 this guide。



Cygwin安装良好,一切顺利。

Gitolite安装,但是,是不好,我似乎找不到我应该做什么的解决方案(既没有google帮助,因为大家链接到我给了一个链接,或大家谈论旧版本的gitolite的页面。)

我到达了安装Gitolite部分的第5步。

1.我使用gitolite克隆执行了部分操作。

2.安装gitolite的部分不同,但似乎已经很好。 gl-system-install 没有工作,所以我使用 gitolite / install -ln 网站。

3.这是一切都失败的地方。 gl-setup 不再存在,所以我使用 gitolite setup -pk〜/ myName.pub 命令。在这个阶段,它首先说:在C:/cygwin64/home/git/repositories/gitolite-admin.git 中初始化空的Git存储库,紧接着我得到 fatal:无法切换到/ home / git:没有这样的文件或目录

它创建了 / home / git / .gitolite.rc 和我做了什么指导告诉旁边做。但是当我执行命令 git clone git @ gitserver:gitolite-admin.git 退出服务器shell后,我得到错误

bash:git-upload-pack:未找到命令

fatal:无法从远程存储库读取。


存储库gitolite-admin.git确实存在于 / home / git / repositories



我真的想知道我在这里做错了。我想在Windows机器上使用身份验证运行git。

解决方案

这是一个使用Cygwin和gitolite的旧指南V2。



现在,只需使用带有msysgit的常规DOS会话(不需要对于Cygwin ,作为此处详述)。

对于安装,请按照官方最新说明

(检查环境变量 HOME 的定义如下: git-cmd.bat 为您定义

  git clone https://github.com/sitaramc/gitolite/ 
cd gitolite
gitolite / install -to C:/ path / to / bin


I was using this guide.

Cygwin installation was good and all went well.
Gitolite installation, however, is bad and i can't seem to find the solution to what should i do (neither google helps with that, because everybody link to the page i gave a link to, or everybody talk about old versions of gitolite.)

I have reached the step No. 5 of the "Installing Gitolite" part.
1. I did the part with gitolite cloning ok.
2. The part with installing gitolite was different, but seems to have gone well. gl-system-install didn't work, so i used gitolite/install -ln as was told by the instructions at this site.
3. This is where everything fails. gl-setup doesn't exist anymore, so i used gitolite setup -pk ~/myName.pub command. At this stage it first says Initialized empty Git repository in C:/cygwin64/home/git/repositories/gitolite-admin.git, right after that i get fatal: Could not switch to '/home/git': No such file or directory
It did create the file /home/git/.gitolite.rc and i did what the guide told next to do. However when i execute the command git clone git@gitserver:gitolite-admin.git after exiting server shell, i get the error
bash: git-upload-pack: command not found
fatal: could not read from remote repository.

The repository gitolite-admin.git does exist in /home/git/repositories

I would really like to know what am i doing wrong here. I'd like to be able to run git with authentication on windows machine.

解决方案

It is an old guide using Cygwin and gitolite V2.

Nowadays, simply use a regular DOS session with msysgit (no need for Cygwin anymore, as detailed here).
For the installation, follow the official current instructions:
(check that the environment variable HOME is defined: git-cmd.bat defines it for you)

git clone https://github.com/sitaramc/gitolite/
cd gitolite
gitolite/install -to C:/path/to/bin

这篇关于Cygwin和gitolite 3.如何在Windows上设置它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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