gitolite

How to tell git to use the correct identity (name and email) for a given project?

偶尔善良 提交于 2019-11-27 05:01:46
问题 I use my personal laptop for both work and personal projects and I would like to use my work email address for my commits at work (gitolite) and my personal email address for the rest (github). I read about the following solutions which are all either global or temporary: git config --global user.email "bob@example.com" git config user.email "bob@example.com" git commit --author "Bob <bob@example.com>" setting one of the GIT_AUTHOR_EMAIL , GIT_COMMITTER_EMAIL or EMAIL environment variables

gitolite: default remotes for new repository

蓝咒 提交于 2019-11-27 03:52:05
问题 I've installed gitolite (locally for now, to experiment) and it seems to work, except that new repositories are not tracking the remote by default after a git clone. If I remember correctly, when I clone a repository from github.com, it's already able to push and pull. Here is what I tried: $ git clone git@localhost:sandbox Cloning into sandbox... warning: You appear to have cloned an empty repository. $ echo "A" > README $ git add README $ git commit README -m 'test' $ git push No refs in

gitolite: can connect via ssh, can't clone

风格不统一 提交于 2019-11-27 02:56:28
问题 I installed gitolite on my server using this tutorial. This falls under the "non-root" method. It fails when I try to clone gitolite-admin back to my client. I get this error message: git clone gitolite@server.com:gitolite-admin Cloning into gitolite-admin... fatal: The remote end hung up unexpectedly Also: git clone ssh://gitolite@server.com:gitolite-admin Cloning into gitolite0admin... Using username "git-upload-pack 'gitolite". fatal: The remote end hung up unexpectedly I have also tried

gitolite with http acces via LDAP does not pass the username

。_饼干妹妹 提交于 2019-11-26 23:33:29
问题 I'm trying to setup a git server with: http-access to be able to clone repositories like this: git clone http://mygitserver/repository have a web interface (gitweb), if possible with restrictions per user control access based on LDAP accounts So far I have gitweb up and running; when I access http://gitserver/ it asks ldap login and when I provide this; it shows all repositories (even gitolite-admin repository... not so good) When I try to clone, I get the error: fatal: http://gitserver/

Git with Ldap on Ubuntu with Apache

偶尔善良 提交于 2019-11-26 23:19:42
问题 I'm new to Git and trying to get an installation of Git, Gitolite, and Gitweb working with LDAP. So far, we have Gitweb working with LDAP. I've reviewed many posts and guides posted around the web, but have not found a solution yet. This is on an Ubuntu 12.04.2 server with Apache 2.2.22. I'm not an expert in any of these technologies, so if I'm missing something obvious please let me know. :) My site file contains: <VirtualHost *:80> ServerAdmin admin ServerName myserver RewriteEngine On

Gitolite - remote: FATAL: fingerprinting failed for 'keydir/'

一世执手 提交于 2019-11-26 21:42:25
问题 I installed Gitolite in my system to manage the repositories. When i try to add any of the client machine's public key, am getting the error "remote: FATAL: fingerprinting failed for 'keydir/". Would you please help me to resolve this problem. 回答1: As I documented in "Getting fatal: object is corrupted when pushing to a remote repo", this is due to an incorrect ssh key. I like to generate my private/public keys like so (not password protected): ssh-keygen -t rsa -f "$HOME/.ssh/git" -C

gitolite push error -> remote: ENV GL_RC not set

痴心易碎 提交于 2019-11-26 11:18:08
问题 I am trying to push content from a workstation to a server. But it gives me an error. Please look at the following for command and error: Administrator@ganesh ~/testing $ git push origin master Counting objects: 3, done. Writing objects: 100% (3/3), 241 bytes, done. Total 3 (delta 0), reused 0 (delta 0) remote: ENV GL_RC not set remote: BEGIN failed--compilation aborted at hooks/update line 20. remote: error: hook declined to update refs/heads/master To git@ganesh:repositories/testing !

Specify an SSH key for git push for a given domain

浪尽此生 提交于 2019-11-26 00:56:19
问题 I have the following use case: I would like to be able to push to git@git.company.com:gitolite-admin using the private key of user gitolite-admin , while I want to push to git@git.company.com:some_repo using \'my own\' private key. AFAIK, I can\'t solve this using ~/.ssh/config , because the user name and server name are identical in both cases. As I mostly use my own private key, I have that defined in ~/.ssh/config for git@git.company.com . Does anyone know of a way to override the key that

How do programs like gitolite work?

守給你的承諾、 提交于 2019-11-25 22:40:25
问题 I am curious as to how programs such as gitolite work -- specifically how do they interact with the SSH protocol to provide a tailored experience. Can somebody provide an example of how I might accomplish something like the following and where I might learn more about this topic? → ssh git@github.com PTY allocation request failed on channel 0 Hi <username>! You\'ve successfully authenticated, but GitHub does not provide shell access. Connection to github.com closed. A side question: my

gitosis vs gitolite? [closed]

╄→尐↘猪︶ㄣ 提交于 2019-11-25 22:30:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am looking for installing a git server to share projects with my team. I don\'t want to create a user account on the server with SSH access for each developer that needs a git access. It seems there is two concurrent solutions that cover this issue : gitosis & gitolite. I could not find any comparison between