Articles of git

Howto Nginx + git-http-backend + fcgiwrap(Debian Squeeze)

我想用Nginx设置git-http-backend,但是在24小时之后浪费时间和阅读所有我能想到的configuration应该可以工作,但是不能。 server { listen 80; server_name mydevserver; access_log /var/log/nginx/dev.access.log; error_log /var/log/nginx/dev.error.log; location / { root /var/repos; } location ~ /git(/.*) { gzip off; root /usr/lib/git-core; fastcgi_pass unix:/var/run/fcgiwrap.socket; include /etc/nginx/fastcgi_params2; fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend; fastcgi_param DOCUMENT_ROOT /usr/lib/git-core/; fastcgi_param SCRIPT_NAME git-http-backend; fastcgi_param GIT_HTTP_EXPORT_ALL ""; fastcgi_param GIT_PROJECT_ROOT /var/repos; fastcgi_param PATH_INFO $1; #fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; } } / etc / […]

将Gitlab和Gitolite服务器移到另一台机器上

现在,我有我的Ubuntu服务器上运行的gitlab和gitolite。 但是,这台服务器太慢,我的公司希望将服务器移动到另一台机器。 有没有办法将gitlab和gitolite服务器(整个文件,用户和设置)移动到另一台机器上? 再次安装和创build所有用户和存储库将是我的最后select。 先谢谢你。

用户无法连接到git(在Ubuntu上使用gitolite)

我能够运行以下命令: git clone admin@ip address:gitolite-admin.git 当我尝试使用以下步骤添加新用户时,新用户无法连接: 迄今采取的步骤 : 1. Copied the public key into the keydir (also tried copying it in a separate directory within the keydir) 2. I added a repo in the config file for the new userID 3. git add -A 4. git commit -m 'adding new user keys and repo' 5. […]

jenkins从Bonobo Git服务器拉

我已经安装了 jenkins Jenkins上的SCM的Git插件 Bonobo Git服务器 要configurationjenkins从Git生成我input在我的本地networkinghttp://devserv/Bonobo.Git.Server/<reponame>.git url,然后我先input用户名和密码,我得到这个错误信息: Failed to connect to repository : Could not init C:\Windows\TEMP\hudson8497551621296692258tmp 我试图去文件夹,并给予每个人完全访问权限,只是为了一个testing,但没有帮助。 有任何想法吗?

是“对我撒谎?

我通过apt-get安装了git,但是发现版本已经过时了,于是我从源代码安装了git 。 最终的结果令人费解: $ git –version git version 1.7.0.4 $ which git /usr/local/bin/git $ /usr/local/bin/git –version git version 1.7.6 看来which在骗我……这似乎不太可能。 这里究竟发生了什么事情,我怎样才能让git运行正确的版本?

当访问每个浏览器时,git http-backend显示信息

我目前正在为我的私人项目托pipe自己的git-repos。 为此,我使用Apache和标准的git http-backend 。 现在,回购可以像这样的URL访问: http://vcs.myserver.lc/git/Repo.git 有了这个URL,我可以使用git来推送,获取和克隆到这个仓库。 然而,在浏览器中打开这个URL只是给了我一个空白页面,现在我正在寻找一种方法来避免这种情况。 相反,我希望Apache提供一些信息,如: 这不是一个网页,这是一个混帐回购。 你可以克隆这个回购使用git clone [URL] … 如果将[URL]replace为当前的URL(例如使用PHP),将会很好,但是纯HTML也可以。 我知道这应该是可能的 github和他们的回购一样。 我设法通过在VHost-config文件中指定一个DocumentRoot来为vcs.myserver.lc -domain做类似的vcs.myserver.lc : DocumentRoot /srv/http/vcs/ 在这个path中,我把一个简单的index.html文件与基本的说明。 那么,他们的任何简单的方式来显示浏览器的信息,而git客户端仍然可以使用回购协议? 我可以将浏览器redirect到特定的信息网站吗?

我如何通过sudo和不同的用户使用etckeeper,并在提交消息中拥有正确的用户?

我正在与几个pipe理员用户在一个服务器上工作。 他们每个人都可以使用sudo进行configuration更改。 我们正在使用etckeeper来控制我们的/etc目录的版本控制。 但是,当我或另一个pipe理员调用sudo etckeeper commit COMMITMESSAGE ,git使用root用户的名字和电子邮件来提交消息。 在这个例子中,在这个例子中设置git config user.name不起作用,因为每次调用etckeeper commit ,都会使用相同的数据。 我想要的是,实际的用户名和电子邮件出现在etckeeper git仓库中,所以从提交日志我可以追踪谁做了哪些更改。 任何帮助是极大的赞赏!

从Windows到Windows的Git克隆无法find存储库

git clone gituser@<server>:myRepo.git不起作用,失败并显示错误信息: fatal: ''myRepo.git'' does not appear to be a git repository 背景: 我们有一个Windows 7机器设置了Git Bash和Bitvise WinSSHd(在C: )。 SSH服务器设置为使用<git dir>/bin/sh.exe –login作为shell,主目录设置为/a/ 。 我可以通过SSH连接到服务器上,并按照预期从/a/目录开始,将其放入Git Bash shell。 我在/a/myRepo.git (在A:磁盘上)有一个裸仓库,只要我们在本地进行操作,它就可以完成所有工作。 我可以git clone /a/myRepo.git ,在它git clone /a/myRepo.git工作,推和拉,只要它是本地的(或通过SSH的“本地”)没有问题。 此外,我们将A:磁盘设置为共享文件夹,我可以使用\\<server>\myRepo.git克隆,推送和从本地networking机器中\\<server>\myRepo.git 。 然而,当我尝试克隆远程时,我无法弄清楚什么样的组合选项将允许它工作:明显的克隆string不起作用,绝对path名以* nix转换格式( /a/myRepo.git和A:/myRepo.git )或Windows格式( A:\\myRepo.git )失败,同样的错误,目录上的权限设置为允许所有用户,我已经设置了git config core.sharedRepository all在服务机器上。 我曾怀疑Git Bash将Windows驱动器盘符重新映射为/<letter>格式,但我试图在C上创build另一个裸存储库:它给了我相同的错误消息。

Ubuntu 14.04上git(在github上)的SSLvalidation错误

我试图克隆刚刚完全开源的primefaces库,并遇到了一些麻烦。 试图git clone仓库git clone产生一个SSL错误: wug@wugputer:/src/test$ git clone https://github.com/atom/atom.git Cloning into atom… error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/atom/atom.git/info/refs fatal: HTTP request failed 谷歌search已经表明,这是一个失败的CURL调用,并有一个环境variables,我可以设置获得更多的信息,但没有显示任何特别有用的东西: wug@wugputer:/src/test$ GIT_CURL_VERBOSE=1 git clone https://github.com/atom/atom.git Cloning into atom… * Couldn't find host github.com in the .netrc file; using defaults * […]

EtcKeeper:从bzr切换到git

我已经在我的数字海洋液滴上使用了etckeeper了一段时间,并且自那时起已经对/ etc进行了大量的修改。 我现在意识到,我一直在使用bzr,并希望切换到git; 但担心我将放弃对我的/ etc目录所做的所有增量更改。 有没有办法不仅从bzr切换到git,而且还将bzr的增量更改转换为git? 谢谢!