注意:虽然描述的用例是关于在项目中使用子模块,但同样适用于git cloneHTTP上的存储库的常规.
我在Git控制下有一个项目.我想添加一个子模块:
git submodule add http://github.com/jscruggs/metric_fu.git vendor/plugins/metric_fu
Run Code Online (Sandbox Code Playgroud)
但我明白了
...
got 1b0313f016d98e556396c91d08127c59722762d0
got 4c42d44a9221209293e5f3eb7e662a1571b09421
got b0d6414e3ca5c2fb4b95b7712c7edbf7d2becac7
error: Unable to find abc07fcf79aebed56497e3894c6c3c06046f913a under http://github.com/jscruggs/metri...
Cannot obtain needed commit abc07fcf79aebed56497e3894c6c3c06046f913a
while processing commit ee576543b3a0820cc966cc10cc41e6ffb3415658.
fatal: Fetch failed.
Clone of 'http://github.com/jscruggs/metric_fu.git' into submodule path 'vendor/plugins/metric_fu'
Run Code Online (Sandbox Code Playgroud)
我设置了HTTP_PROXY:
c:\project> echo %HTTP_PROXY%
http://proxy.mycompany:80
Run Code Online (Sandbox Code Playgroud)
我甚至为http代理设置了全局Git:
c:\project> git config --get http.proxy
http://proxy.mycompany:80
Run Code Online (Sandbox Code Playgroud)
有没有人获得HTTP提取以始终通过代理工作?真正奇怪的是GitHub上的一些项目工作正常(awesome_nested_set例如),但其他项目一直都失败(例如rails).
我正在尝试在我们组织的数据中心的构建服务器上设置Bower,但是git端口似乎没有在数据中心的防火墙上打开.我可以使用git命令行客户端来克隆https://[repo],但不是git://[repo].
是否有一个开关或首选项将指示bower使用https而不是git协议执行git clone ?
我看过的来源,并认为更改分辨率代码替换git://用https://,但我想我会问之前,我去那些长度.
这些天,当我在设置页面上的GitHub上创建一个新的存储库时,我得到:
git remote add origin https://github.com/nikhilbhardwaj/abc.git
git push -u origin master
Run Code Online (Sandbox Code Playgroud)
每当我必须提交提交时,我需要输入我的GitHub用户名和密码.
我可以手动将其更改为
git@github.com:nikhilbhardwaj/abc.git
Run Code Online (Sandbox Code Playgroud)
在.git/config.我觉得这很烦人 - 有什么办法可以配置git默认使用SSH吗?
我已经使用 github actions 有一段时间了,但今天我的部署开始失败。以下是 github 操作日志中的错误
Command: git
Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git
Directory: /home/runner/work/stackstream-fe/stackstream-fe
Output:
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Run Code Online (Sandbox Code Playgroud)
经过调查,我的 yml 文件中的以下部分似乎导致了该问题。
- name: Installing modules
run: yarn install
Run Code Online (Sandbox Code Playgroud)
我已经查看了此更改日志,但似乎无法理解这个问题。
其他详细信息:服务器:EC2 实例 Github 操作步骤:
steps:
- name: Checkout
uses: actions/checkout@v2
- id: vars
run: |
if [ '${{ github.ref }}' == 'refs/heads/master' ]; then echo "::set-output name=environment::prod_stackstream" ; echo "::set-output name=api-url::api" ; elif [ '${{ github.ref …Run Code Online (Sandbox Code Playgroud) Gitlab是一种免费的,开源的托管私有.git存储库的方式,但它似乎不适用于GoLang.创建项目时,它会生成以下形式的URL:
git@1.2.3.4:private-developers/project.git
Run Code Online (Sandbox Code Playgroud)
哪里:
1.2.3.4 是gitlab服务器的IP地址private-developers 是一个可以访问私人仓库的用户组Golang 1.2.1似乎不理解这种语法.
go get git@1.2.3.4:private-developers/project.git
Run Code Online (Sandbox Code Playgroud)
结果是:
package git@23.251.148.129/project.git: unrecognized import path "git@1.2.3.4/project.git"
Run Code Online (Sandbox Code Playgroud)
有没有办法让这个工作?
我发布这个有点犹豫,因为我不完全确定我在做什么.任何帮助都会很精彩.
我在一台带有防火墙/过滤器的计算机上.我可以毫无困难地下载文件.但是,当我尝试从Github克隆文件时,计算机就会挂起.什么都没发生.它在文件夹中创建一个git文件,但是没有加载密钥文件.对于上下文,我正在使用Rails应用程序,尝试加载Restful Authentication.
有没有人处理过这件事?有关让克隆工作的任何建议吗?禁用防火墙可能是一种选择,但如果我可以在不经过这个过程的情况下做某事,我会很感激.