嵌入式视频行业。
分类: LINUX
2012-12-24 16:15:33
Gitolite版本gitolite v3.x
按照Gitolited的README.txt进行安装,
Steps to install:
* login as 'git' as described above
* make sure ~/.ssh/authorized_keys is empty or non-existent
* make sure your ssh public key from your workstation is available at
$HOME/YourName.pub
* run the following commands:
git clone git://github.com/sitaramc/gitolite
mkdir -p $HOME/bin
gitolite/install -to $HOME/bin
gitolite setup -pk YourName.pub
If the last command doesn't run perhaps 'bin' in not in your 'PATH'.
You can either add it, or just run:
$HOME/bin/gitolite setup -pk YourName.pub
在进行gitolite/install -to $HOME/bin安装时,提示错误:
[git@localhost ~]$ gitolite-master/install -to $HOME/bin
Can't locate Time/HiRes.pm in @INC (@INC contains: /home/git/gitolite-master/src/lib /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at /home/git/gitolite-master/src/lib/Gitolite/Common.pm line 76.
BEGIN failed--compilation aborted at /home/git/gitolite-master/src/lib/Gitolite/Common.pm line 76.
Compilation failed in require at gitolite-master/install line 15.
BEGIN failed--compilation aborted at gitolite-master/install line 15.
提示是因为perl缺少perl-Time-HiRes模块,如要运行如下命令进行安装:
yum --disablerepo=\* --enablerepo=c6-media search perl-Time-HiRes
/-----------------------------------------------------------------------------------------
TortoiseGit使用指南
安装msysGit-fullinstall-1.7.11-preview20120620.exe,
显示如下界面,表示安装成功.
接下来,安装Tortoisegit-1.6.5.0-32bit.msi 第二步 生成密钥对
到开始菜单,运行puttygen生成密钥。
运行Puttygen后,弹出如下界面:
点击Generate按钮,并不停的在对话框的空白区域,移动鼠标,以辅助生成密钥。密钥生成后的界面如下:
点击Save public key按钮,
保存为name.pub,如xyc.pub(公钥,发给管理员保存)
点击Save private key 按钮保存为xyc.ppk(私钥,自己妥善保存) 第三步 设置msisgit路径
设置tortoisegit。
如上图,会出现如下提示
点击yes
在MSysGit选项区域,选择git.exe后边的浏览按钮,找到msisgit的安装目录。点击确定即可。 第四步 测试
点击右键,选择Git Clone。
URL处填写:
git@192.168.20.202:testing
Load Putty Key 选择第二步生成的私钥。点击OK即可测试。
如果弹出如下对话框,则表示设置成功。