在私人服务器上设置git,它要求输入git密码 [英] setting up git in a private server, it asks for git password

查看:291
本文介绍了在私人服务器上设置git,它要求输入git密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu 12.10 VPS中设置git。这是我第一次建立一个git仓库,所以我只是一个初学者,我确信我错过了一些重要的东西。我已经在我的服务器中执行了以下命令:
$ b $ pre $ #apt-get install git-core
#git config - -global user.nameRoberto
#git config --global user.nameroberto@example.com
#apt-get install gitolite
#adduser --system --gecos 'git版本控制'--shell / bin / bash --group --disabled -password --home / home / git git
#su git
$ echoPATH = $ HOME / bin:$ PATH> 〜/ .bashrc
$ cd
$ gl-setup /tmp/roberto.pub



roberto.pub是我工作机器中的公共证书。然后从那台工作机器上,我尝试克隆gitolite-admin存储库,以管理git服务器:

  $ git clone git @ vps:gitolite-admin.git 
克隆到'gitolite-admin'...
git @ vps的密码:

我还没有设置!难道它不是要求我提供罗伯特的密码吗?



感谢您的帮助!

解决方案

gl-setup 表示旧的gitolite v2。

不。不要:很容易获得gitolite V3和所有好的功能



克隆最新的gitolite repo:

  git clone https://github.com/sitaramc / gitolite 

请仔细按照安装说明设置

  gitolite / install -to / your / path / to / gitolite / bin 
gitolite setup -pk roberto.pub


I am setting up git in an ubuntu 12.10 VPS. This is my first time setting up a git repository so I am just a beginner, and I'm sure I'm missing some important stuff. I have executed the following commands in my server:

# apt-get install git-core
# git config --global user.name "Roberto"
# git config --global user.name "roberto@example.com"
# apt-get install gitolite
# adduser --system --gecos 'git version control' --shell /bin/bash --group --disabled-password --home /home/git git
# su git
$ echo "PATH=$HOME/bin:$PATH" > ~/.bashrc
$ cd
$ gl-setup /tmp/roberto.pub

roberto.pub is my public certificate in my work machine. Then from that work machine, I have tried to clone the gitolite-admin repository, to manage the git server:

$ git clone git@vps:gitolite-admin.git
Cloning into 'gitolite-admin'...
git@vps's password:

Which I have not even set! Shouldn't it be asking me for roberto's password instead?

Thanks for your help!

解决方案

gl-setup means old gitolite v2.
Don't. Just don't: it is so easy to get gitolite V3 and all its nice features.

Clone somewhere the latest gitolite repo:

 git clone https://github.com/sitaramc/gitolite

And carefully follow the installation instructions and setup.

 gitolite/install -to /your/path/to/gitolite/bin
 gitolite setup -pk roberto.pub

这篇关于在私人服务器上设置git,它要求输入git密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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