Articles of git

ssh_exchange_identification:远程主机closures连接?

debug1: Connection established. debug1: identity file /home/DAMS/.ssh/id_rsa type 1 debug1: identity file /home/DAMS/.ssh/id_rsa-cert type -1 debug1: identity file /home/DAMS/.ssh/id_dsa type -1 debug1: identity file /home/DAMS/.ssh/id_dsa-cert type -1 ssh_exchange_identification: Connection closed by remote host 你好,这一个是不同的。 没有失踪或任何东西。 即时通讯使用cygwin。 当我在服务器上执行git push production的时候,它就停止了。 通常是好的,但我不知道为什么它停止连接 我不知道什么是错的。

通过PuTTy对git服务器进行身份validation

嘿,我通过PuTTy连接到远程服务器。 在这个服务器上,我也在编写一些代码,我想推到一个需要ssh-rsaauthentication的git仓库。 所以当推 git推送起源大师 服务器要求input密码。 然而,我已经加载了我的私钥与选美,所以PuTTy应该知道我的私钥,而不是要求input密码,而是直接接受推送。 我的主要问题:如果您想要通过PuTTy将git推送到需要身份validation的远程服务器(用户拥有有效的私钥),标准过程如何? 上传我的密钥到服务器当然不是一个好的select。

什么是需要禁止托pipe的git存储库的危险操作?

我正在研究需要给其他人写访问权限的工具。 我知道git仓库是通过一个locking命令(如gitosis或gitolite)使用SSH访问的。 我了解到,与Subversion不同,它不支持任何历史更改操作,它具有某些可以实际销毁数据的操作,例如git push –force 。 是否有更多这样的操作需要拒绝给远程用户?

git-pull后如何更改权限和所有权以匹配文件夹?

我工作的公司使用Git进行部署,因此它将覆盖特定的权限和所有权。 什么是最好的方式来确保文件夹的所有权和权限保留时,执行git pull ? 我使用MAMP在OS X上进行开发,推送到生产环境克隆的临时服务器。 当它到达分期,我必须更正权限,但他们通常设置为664而不是644,导致与suPHP的问题。

尝试安装gitolite时出现错误

我想起床并运行gitolite的说明在这个http://sitaramc.github.com/gitolite/qi.html说,但是当我运行命令: [git@devserver gitolite]$ src/gitolite install -ln FATAL: errors found before logfile could be created FATAL: die unknown gitolite sub-command 我得到上面的错误,我做错了什么? 我创build的git用户为: useradd -d /data/gitrepos git 然后cd到/ data / gitrepos并使用以下命令克隆gitolite repo: git clone git://github.com/sitaramc/gitolite 有什么build议? 欢呼声和感谢提前

TeamCity:'git fetch'命令失败。 stderr:套接字closures

我们一直在TeamCity工作多年,并用git作为版本控制系统。 我已经与TeamCitybuild立了整合,​​并且一直工作正常。 我们有四个使用git的不同项目 最近有些项目间歇性地停止了工作。 生成无法启动。 这样的消息显示为红色。 (与不同的代理): 无法在Teamcityagent8_Continuous5(和另外1个)上开始构build#1094 构build日志说很less: [16:12:46]Checking for changes [16:12:49]Failed to start build [16:12:49]Failed to collect changes, error: Error collecting changes for VCS repository 'http://foo-app-sprint:7990/scm/BAR/qux.git#master' 'git fetch' command failed. stderr: Socket Closed [16:12:49]Cannot calculate build metric 'percent of class coverage' – no value 奇怪的是,有其他项目有非常相似的configuration,工作得很好。 他们使用相同的构build代理。 我们使用Atlassian Stash作为Git服务器。 我已经看了那里的所有日志,当我在团队城市里跑步的时候什么都没有发生。 所以,TeamCity似乎甚至没有到达Git服务器。 如果我在TeamCity中testingVCS连接,它将起作用。 我已经testing重新启动藏匿。 它没有帮助。 […]

nginx反向代理(HTTPS)背后的nginx(基本authentication)如何使git推工作?

我喜欢在没有直接互联网访问的计算机(后端)上安装git服务器。 应该有基本的authentication。 该访问应该可以通过另一台计算机上的反向代理(前端)来实现,该计算机执行SSL / HTTPS。 两者都在运行Debian 7 stable(对于nginx和git来说,是wheezy + wheezy-backports)。 到目前为止,所有的东西(= git clone )都能工作,但是git push : $ git push –set-upstream origin master Username for 'https://myfrontend:443': myusername Password for 'https://myusername@myfrontend:443': error: Cannot access URL https://myserver:443/git/gittest.git/, return code 22 fatal: git-http-push failed 后端nginx日志中的错误消息是: 2014/04/01 01:00:00 [error] 27000#0: *7 no user/password was provided for basic authentication, client: myfrontend, […]

与Github Ansible:权限被拒绝(公钥)

我试图理解与Ansible的GitHub sshconfiguration(我正在Ansible:Up&Running书上工作)。 我遇到两个问题。 权限被拒绝(publickey) – 当我第一次运行ansible-playbook mezzanine.yml剧本时,我被拒绝了一个权限: failed: [web] => {"cmd": "/usr/bin/git ls-remote '' -h refs/heads/HEAD", "failed": true, "rc": 128} stderr: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. msg: Permission denied (publickey). fatal: Could not read from remote repository. […]

git push over http身份validation

我已经设置了Apache使用git-http-backend按照专业版书籍中的说明和它的手册页。 我的apacheconfiguration现在看起来像: SetEnv GIT_PROJECT_ROOT /var/www/git SetEnv GIT_HTTP_EXPORT_ALL ScriptAlias /git/ /usr/lib/git-core/git-http-backend/ <LocationMatch "^/git/.*/git-receive-pack$"> AuthType Basic AuthName "Git Access" Require group committers </LocationMatch> 我可以使用git clone http: //user@url/git/repo.git克隆一个回购 这会提示我input“user”的密码,然后继续。 但是,当我尝试推送时,系统会提示input密码两次,然后出现错误: Cannot access URL http: //user@url/git/repo.git/, return code 22 (我在URL中插入了一个空格,因为垃圾邮件防护机制不会让我发帖) 当我看着我的apache日志时,我看到: 192.168.1.151 – – [12/Sep/2010:20:11:22 +0100] "GET /git/repo.git/info/refs?service=git-receive-pack HTTP/1.1" 403 – "-" "git/1.7.2.3" 192.168.1.151 – – [12/Sep/2010:20:11:23 +0100] "GET […]

两个星号的文件名** / *

什么文件名像some_directory/**/*是什么意思? 这是git的.gitignore文件的一部分。