gitolite

gitolite 向 gitlab 迁移

拟墨画扇 提交于 2019-12-16 12:16:26
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 2.5.1. gitolite 向 gitlab 迁移 早期gitlab使用gitolite为用户提供SSH服务,新版gitlab有了更好的解决方案gitlab-shell。安装新版本是必会涉及gitolite 向 gitlab 迁移,下面是我总结的一些迁移经验。 第一步,将gitolite复制到gitlab仓库目录下 # cp -r /gitroot/gitolite/repositories/* /var/opt/gitlab/git-data/repositories/ 执行导入处理程序 # gitlab-rake gitlab:import:repos 上面程序会处理一下目录结构,例如 进入gitlab web界面,创建仓库与导入的仓库同名,这样就完成了导入工作。 提示 转换最好在git用户下面操作,否则你需要运行 # chown git:git -R /var/opt/gitlab/git-data/repositories 来源: oschina 链接: https://my.oschina.net/u/725072/blog/406731

gitolite installation: I cannot clone gitolite-admin repo!

扶醉桌前 提交于 2019-12-14 00:21:42
问题 I'm trying to install gitolite on my ubuntu server machine. still, there're lots of things I don't know yet, but I'm stepping forwarding very slowly following its instruction(http://sitaramc.github.com/gitolite/doc/1-INSTALL.html). my account of the server is 'yoon' and gened key-pair using ssh-keygen command without passpharse(just hit enter). then, copy public key to /tmp dir and chmod it 777. install gitolite using 'sudo apt-get install gitolite' and it also created gitolite account.(last

How to find out what causes file permissions to change when checking out files with git?

北城余情 提交于 2019-12-13 12:28:21
问题 After pushing files to our server, the following post-receive hook is executed: #!/bin/sh export GIT_WORK_TREE=/home/user/www/ git checkout -f However, files get a very odd 600 permission, and folders 700 upon checkout. This is not what I expect (on our other servers we get 644 and 755 ). From this thread I understand that git does not set permissions, so git is not to blame. My question is: what is? How can I figure out what the cause is of this issue? I have already temporarily solved it by

How to setup gitolite and gerrit on separate ubuntu servers?

巧了我就是萌 提交于 2019-12-13 04:44:33
问题 I would like to setup gitolite on one ubuntu server. This gitolite is used to host git repositories. I would like to setup gerrit on different ubuntu server and it uses git repositories hosted on gitolite server. Is it possible? If yes, please provide setup steps. 回答1: It should be possible if the Gitolite server shares the repositories via e.g. NFS to the Gerrit server. Gerrit needs to "own" the repositories by accessing them through a mounted file system. But why would you want to do this?

Gitolite ssh commands

ぃ、小莉子 提交于 2019-12-12 20:25:28
问题 I'm trying to get around with a running gitolite server. When running ssh git@host info I get the expected list of repositories. But when I try to run and other command e.g. ssh git@host help the server responds with bad command: help Unfortunately the gitolite documentation didn't help with the troubleshooting :( Any suggestions? Cheers. 回答1: This is expected. Based on how gitolite uses ssh (ie, using forced command), you will always get that error message for any command except: git

Gitolite refuses to accept commits to gitolite-admin.git

﹥>﹥吖頭↗ 提交于 2019-12-12 03:55:27
问题 I am following this tutorial to install a gitolite server on my Debian PC. Once that works, I intend to connect to it from a virtual machine, to simulate client connection. $ cd ~/ssh $ ssh-keygen glite $ sudo apt-get install gitolite3 $ export GL_LIBDIR=/home/default/bin/lib $ export GL_BINDIR=/home/default/bin $ gitolite setup -pk /home/default/.ssh/glite.pub $ cd ~/projects $ git clone ../repositories/gitolite-admin.git # make some changes $ git push origin master Counting objects: 4, done

How to configure gitolite for a single domain on Plesk

不羁岁月 提交于 2019-12-11 15:59:56
问题 How to configure the gitolite on a plesk panel single domain. When I use a /bin/bash user created by plesk, the home folder becomes /var/www/vhosts/{user}/ Then after install gitolite there, the user still not using the $HOME/bin/ folder to find the gitolite binary, and uses the system binary, so always when I try to clone the gitolite-admin come's a empty directory. How to configure the plesk ssh domain user to use the $HOME/bin folder to access the gitolite repo and it binaries? I'm using

Git hook to detect push --mirror

走远了吗. 提交于 2019-12-11 02:47:21
问题 beside a main Git repository on a server (with Gitolite) I would like to have a possibility for each developer to set up a mirror it's own local repository. That's not difficult. However, I want to disable git push --mirror on the main Git server repository, to prevent mistakes if a developer screw the mirroring. I think the best place is a hook, maybe the update hook. But I cannot find how to detect in a server hook, that push --mirror command has been executed on the client machine. Client

Gitolite Eclipse 'Auth fail'

放肆的年华 提交于 2019-12-11 01:54:01
问题 I am trying to get a Gitolite server going on a CentOS machine, but I can't seem to access it from an Eclipse on a Windows laptop. I can clone the admin repository from a local account and from the remote computer with command line git, ( git clone git@192.168.2.96:gitolite-admin ) but when I try to do it from Eclipse I get nothing but Auth fail messages. The key is in C:\Users\<username>\.ssh and Eclipse's SSH2 home directory is pointing there. 回答1: If your "Window > Preferences > Network

why my git can't push to my server by gitolite use git-daemon

。_饼干妹妹 提交于 2019-12-10 18:46:11
问题 when I use gitolite, ignoring git-daemon , I can do like git clone git://xxx/xxx ,but when I push the project, it shows me the error: Total 2 (delta 0), reused 0 (delta 0) remote: Empty compile time value given to use lib at hooks/update line 6 remote: Use of uninitialized value in require at hooks/update line 7. remote: Can't locate Gitolite/Hooks/Update.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr