我正在尝试在我们组织的数据中心的构建服务器上设置Bower,但是git
端口似乎没有在数据中心的防火墙上打开.我可以使用git命令行客户端来克隆https://[repo]
,但不是git://[repo]
.
是否有一个开关或首选项将指示bower使用https
而不是git
协议执行git clone ?
我看过的来源,并认为更改分辨率代码替换git://
用https://
,但我想我会问之前,我去那些长度.
我正在尝试克隆angular-phonecat git存储库,但是当我在Git Bash中输入命令时,我收到以下消息:
$ git clone git://github.com/angular/angular-phonecat.git
Cloning into 'angular-phonecat'...
fatal: unable to connect to github.com:
github.com[0: 204.232.175.90]: errno=No error
Run Code Online (Sandbox Code Playgroud) 哪个有效?SSH://或Git://(文件压缩)
我在Git中理解,git协议是智能的,因为在通信的两端都有一个协议代理来压缩文件传输,从而通过有效地利用网络带宽实现更快的克隆.
从O'Reilly的书中我发现了以下陈述.
For secure, authenticated connections, the Git native
protocol can be tunneled over an SSH connection using
the following URL templates:
ssh: //[user@]example.com[:port]/path/to/repo.git
ssh: //[user@]example.com/path/to/repo.git
ssh: //[user@]example.com/~user2/path/to/repo.git
ssh: //[user@]example.com/~/path/to/repo.git*
Run Code Online (Sandbox Code Playgroud)
我不确定作者是否意味着他说的话.他谈到git协议通过SSH进行隧道传输.
从我的角度来看,除非你连接到git端口(代理端口),否则协议不起作用.SSH仅仅是未压缩的文件传输.
但是根据作者的说法,如果我们使用SSH,他说git协议是通过它进行隧道传输的.那么在GIT中SSH更智能吗?
冯C,谢谢你的回答."网络协议(HTTP和Git)通常是只读的"Git可以rw
在你运行deamon时制作--enable=receive-pack
.
以下是我的担忧.
当他们说git协议是智能的时,他们就意味着当你执行git clone时,git服务器代理会压缩发送回客户端的数据,因此克隆应该更快.在我的用例中,我将在香港设置git服务器并在圣何塞和其他国家使用它.因此,我希望由于延迟问题而在网络上保持高效.
所以我的问题是,当我使用时,我git clone ssh://user@server/reposloc
也获得了git协议的好处吗?根据O'Reilly作者的书,他的意思是git通过ssh进行隧道传输,那么当我没有在服务器上运行git守护进程时,git协议如何工作.
所以使用SSh:// xyz ...它是否同时给出了ssh和git协议的好处?
提前感谢您的答案.
我有6个git子模块,每个子模块都有自己的子模块Dockerfile
.我docker-compose.yml
用这种格式设置了我:
a:
build: A
dockerfile: Dockerfile
ports:
- "9000:9000"
b:
build: B
dockerfile: Dockerfile
ports:
- "3000:3000"
c:
build: C
dockerfile: Dockerfile
ports:
- "3001:3001"
Run Code Online (Sandbox Code Playgroud)
我的Dockerfiles
一些人为bower安装依赖项做了一步,但是当发生这种情况时,它会出现以下错误:
bower open-sans#~1.1.0解决git://github.com/bungeshea/open-sans.git#~1.1.0 bower foundation#~5.5.1 ECMDERR无法执行"git ls-remote --tags - -heads git://github.com/zurb/bower-foundation.git",退出代码为#128致命:不是git存储库:../.git/modules/C
其他错误详细信息:致命:不是git存储库:../.git/modules/C服务'web'无法构建:命令'/ bin/sh -c npm install && npm install -g bower && bower install - allow-root && npm install -g gulp && gulp build'返回非零代码:1