我在Hyper-V上的Ubuntu Server 12.04LTS(已下载并安装在15日)上有我称之为"vanilla"的安装.
Ubuntu似乎都很好.合成网卡很棒.没有检测到问题.
我的计划是使用它作为使用Gitolite的中央GIT存储库.
我已正确安装SSh(至少我认为这是因为我可以" ssh myaccount@mydomain.com
".
密钥是在我的Mac终端上生成并复制的.这工作得很好.
我的问题是,当我尝试安装Gitolite时,我收到以下错误:
No adminkey given - not setting up gitolite.
Run Code Online (Sandbox Code Playgroud)
这些是我用来执行安装的命令:
sudo apt-get install git-core
sudo apt-get install gitolite
Run Code Online (Sandbox Code Playgroud)
我也试过这个:
sudo apt-get install git-core
sudo adduser \
--system \
--shell /bin/bash \
--gecos 'git version control' \
--group \
--disabled-password \
--home /home/git \
git
sudo apt-get install gitolite
Run Code Online (Sandbox Code Playgroud)
......同样的结果
一些版本信息:
Git core: 1:1.7.9.5-1
Gitolite: 2.2-1
Ubuntu: 12.04
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
Gitolite真的可以在Ubuntu 12.04上运行吗?
我有一个奇怪的问题.我使用TortoiseGIT(Win7),我的存储库被放置在一个vritual服务器(Debian)上,我使用gitolite和SSH密钥.
我可以clone
存储库到我的电脑,我可以运行Fetch
,Push
,Commit
,Sync
...一切,但尝试时Pull
从服务器的变化Pushed
被其他贡献者,出现以下错误:
git.exe pull -v --progress "origin"
fatal: 'pull' appears to be a git command, but we were not
able to execute it. Maybe git-pull is broken?
git did not exit cleanly (exit code 128)
Run Code Online (Sandbox Code Playgroud)
我不明白,为什么只是pull
命令不工作..感谢任何帮助.
我可以使用贡献Pull
的更改来创建存储库的克隆..但是不能在我的PC上创建存储库的更改.
我的git有问题,当我推动我的更改时,git向我发送了这个错误:
git FATAL: split conf set, gl-conf not present for "name of repository"
Run Code Online (Sandbox Code Playgroud)
我能做什么?或者我怎么能引起这个问题?谢谢你的帮助.
麦菲
我正在尝试在我的ubuntu服务器上安装gitolite.
还有,还有很多我还不知道的事情,但是我的指示很慢(http://sitaramc.github.com/gitolite/doc/1-INSTALL.html).
请告诉我任何线索〜谢谢!
+我使用相同的机器作为服务器和客户端.
+ ssh -vvv命令的完整列表
yoon@ubuntu:~$ ssh -vvv gitolite@myserver.com
OpenSSH_5.5p1 Debian-4ubuntu5, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to myserver.com [xxx.xxx.xxx.xxx] port 22.
debug1: Connection established.
debug3: Not a RSA1 key file /home/yoon/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: …
Run Code Online (Sandbox Code Playgroud) 使用git时,git ls-remote
返回状态代码,128
而任何其他命令完美无缺地工作(推/拉/克隆/等).我的回购正在用gitolite进行管理.我第一次尝试部署rails app时遇到此错误.手动调用所述命令时,我得到如下标准错误:
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
如果这是权限/公钥问题,我将无法推送/拉出回购.为什么单个ls-remote
命令失败?
在我将本地git repo推送到服务器之后:
$ git push origin master
Run Code Online (Sandbox Code Playgroud)
我希望服务器上的裸仓(在收到我的推送之后)到:
$ cd /Users/me/Sites
$ git pull
$ exit
Run Code Online (Sandbox Code Playgroud)
我在这里看了一些问题,他们在$ HOME/gitolite/hooks中提到了钩子,
但这是我正在使用的:
git@mm:gitolite $ pwd
/Users/git/gitolite
git@mm:gitolite $ ls
.git/ README.txt install*
CHANGELOG check-g2-compat* src/
COPYING convert-gitosis-conf* t/
Run Code Online (Sandbox Code Playgroud)
如何为特定的裸仓库添加post-receive挂钩?
如果我进入我的裸仓库:
git@mm:bare-repo.git $ ls hooks
applypatch-msg.sample* pre-rebase.sample*
commit-msg.sample* prepare-commit-msg.sample*
post-update.sample* update@
pre-applypatch.sample* update.sample*
pre-commit.sample*
Run Code Online (Sandbox Code Playgroud)
我没有看到后收到钩子.是什么赋予了?
我正在尝试运行git服务器存储库.我确实安装了gitolite
当通过ssh运行git info时,服务器会回答
ssh git@myserver info
hello Brian, this is git@hepide01pep1 running gitolite3 on git 1.6.3.2
R W testing
Run Code Online (Sandbox Code Playgroud)
当试图克隆gitolite-admin存储库时,我收到以下错误
git clone git@myserver:gitolite-admin
Cloning into 'gitolite-admin'...
FATAL: R any gitolite-admin Brian DENIED by fallthru
(or you mis-spelled the reponame)
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
这种语法也发生了同样的事情
git clone ssh://git@myserver/gitolite-admin
Cloning into 'gitolite-admin'...
FATAL: R any gitolite-admin Brian DENIED by fallthru
(or you mis-spelled the reponame)
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
Cann任何人都能给我一些有用的提示吗?我在这里和网上检查了答案,但没有找到任何帮助我的东西.
我在CentOS 5.9服务器上安装gitolite.我创建了git用户,然后在su - git
设法将我的公钥放入〜/ .ssh /目录后,我已成功克隆了github上的gitolite repo并运行了gitolite/install -ln
.下一步是运行gitolite设置.
git@hostname [~]# gitolite setup -pk $HOME/.ssh/micha.pub
Initialized empty Git repository in /home/git/repositories/gitolite-admin.git/
Initialized empty Git repository in /home/git/repositories/testing.git/
FATAL: fingerprinting failed for '/tmp/Q3pnE4WVbu'
Run Code Online (Sandbox Code Playgroud)
谷歌搜索和SO搜索没有帮助我解决这个FATAL
错误,我现在陷入困境.
我应该在运行安装程序之前自定义gitolite.conf文件吗?我一直在按照http://gitolite.com/gitolite/progit.html的说明进行操作,因为对于像我这样的noob来说,比起普通的gitolite文档更容易理解.但是,这些说明没有提到自定义.conf文件.
更新: 我尝试生成一个新密钥,它仍然失败:
git@hostname [~]# ssh-keygen -t rsa -C "Gitolite Admin Access (not interactive)" -P ""
Generating public/private rsa key pair.
Enter file in which to save the key (/home/git/.ssh/id_rsa): /home/git/.ssh/micha
/home/git/.ssh/micha already exists.
Overwrite (y/n)? y
Your identification has …
Run Code Online (Sandbox Code Playgroud) 我在删除远程分支时遇到了一些问题(使用git).
我发出以下命令:
git push origin :newpdo
remote: Fatal: +refs/heads/newpdo myusername DENIED by fallthru <br>
remote: error: hook declined to update refs/heads/newpdo <br>
[remote rejected] newpdo <hook declined > <br>
error: failed to push some references to 'ssh://myssh path'
Run Code Online (Sandbox Code Playgroud)
但是,在" git push origin pdo
" 时我没有遇到任何问题
我错过了什么吗?
有什么建议?
我使用gitolite来托管我的源代码,并使用gitweb设置一个网站来显示我的所有项目.一开始,所有项目都通过gitweb正确显示,但是,在我修改了一个项目并进行git推送后,它立即从项目列表中消失.
每个项目,每当我对它进行git推送时,它都会从gitweb的项目列表中消失.然后,如果我对该项目执行"git clone --bare"并替换原始项目,它将再次返回项目中...
有人遇到同样的问题吗?
ps我做了一个"git clone --bare"并做了一个"git push",然后把它与原来的一个区别开来,得到的是:
仅在test.git/objects中:86仅在test.git/objects中:af仅在test.git/objects中:f4仅在test.git/refs/heads:master中
创建具有master的commit id的新文件.