尝试使用Windows上的ssl克隆git存储库时,我不断收到以下错误:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Run Code Online (Sandbox Code Playgroud)
ssl证书层次结构是可信的(颁发者证书被添加到受信任的根证书颁发机构),我可以浏览到托管站点(Gitorious的私有实例),而不会出现ssl错误.我已尝试在Windows 7和Windows Server 2008上进行克隆,但两次都失败了.
有人有任何想法吗?
搜索谷歌+github +ssh "no address associated with name"提供以下SO问题作为4个最佳结果:
github没有与名称关联的地址
Github push origin master not working
与github GITHUB设置同步
- 没有与name关联的地址
但是,他们都没有回答我的问题.
c:\Program Files (x86)\Git\bin>git --version
git version 1.7.7.1.msysgit.0
c:\Program Files (x86)\Git\bin>ssh git@github.com
Enter passphrase for key '/c/Users/Piotr/.ssh/id_rsa':
Hi piotr-dobrogost! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.
c:\Program Files (x86)\Git\bin>git clone ssh://git@github.com:piotr-dobrogost/requests.git
Cloning into requests...
ssh: github.com:piotr-dobrogost: no address associated with name
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
我猜这个问题是由git github.com:piotr-dobrogost作为主机名传递给ssh …
由于我有新版本,它不再问我在ssh密钥文件中设置的密码.
我每次推送时都会直接询问github用户名和密码.
这是git的新功能还是在过去改变了它还是在github上有什么变化?
我尝试使用ssh和我的ssh密钥文件中的电子邮件和密码进行身份验证,但它确实有效.
GitHub更改为smartftp并更改了设置repos的说明
https://github.com/blog/1104-credential-caching-for-wrist-friendly-git-usage
https://help.github.com/articles/create-a-repo
稍后看到,默认情况下,他们现在使用https而不是git协议
我对这个Git事情很陌生,需要一些帮助.
我最近在GitHub上创建了一个新的repo并将其克隆到我的桌面上.我们称之为myProject.我的GitHub帐户中也有一个fork,我将其作为子模块包含在myProject中.让我们把这种myForkOfOtherProject,这是一个叉otherProject.
那么,这是目前的情况:

当一个repo被克隆时,它有一个默认的远程名为origin,指向你在GitHub上的fork,而不是它分叉的原始repo.要跟踪原始仓库,您需要添加另一个名为upstream的远程.
所以,我的问题是,如何将上游设置为子模块?或者我不明白什么?
先感谢您.
所以我现在是 github 上的“jononomo”。然而,一年前,我还是“zononomo”。我暂时放弃了软件,并在此期间购买了一台新笔记本电脑。然后我回来并在 Github 上创建了一个名为“jononomo”的新帐户,现在我正在尝试在两台笔记本电脑之间同步我的点文件。我在我的新笔记本电脑上创建了一个 git 存储库,并将其推送到 github,可以在“jononomo”帐户下查看它。然后我转到我的旧笔记本电脑并克隆了这个存储库。一切都按预期进行。
然后我对旧笔记本电脑上的点文件进行了一些更改,现在我想将这些更改推送到 github,以便我可以将它们拉到我的新笔记本电脑上。问题是当我运行命令时:
git push origin master
Run Code Online (Sandbox Code Playgroud)
我收到错误消息:
ERROR: Permission to jononomo/.dotfiles.git denied to zononomo.
Run Code Online (Sandbox Code Playgroud)
我做的第一件事就是销毁~/.ssh/id_rsa和中的旧 SSH 密钥~/.ssh/id_rsa.pub。然后我生成了新的 SSH 密钥并将新的公钥添加到我的 jononomo github 帐户中。但这并没有解决问题。如果我运行命令:
ssh -T git@github.com
Run Code Online (Sandbox Code Playgroud)
我得到回应:
Hi zononomo! You've successfully authenticated, but GitHub does not provide shell access.
Run Code Online (Sandbox Code Playgroud)
接下来,我按照此处给出的解决方案进行操作:/sf/answers/570660401/ 此人建议我创建一个~/.ssh/config包含以下内容的文件:
Host github-jononomo
User git
Hostname github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_dsa.pub
Run Code Online (Sandbox Code Playgroud)
然后他建议我运行命令:
git remote set-url origin git@github-jononomo:jononomo/.dotfiles.git
Run Code Online (Sandbox Code Playgroud)
我尝试过,但它没有解决我的问题。我仍然收到消息:
ERROR: Permission to jononomo/.dotfiles.git denied to zononomo.
Run Code Online (Sandbox Code Playgroud)
顺便说一句,我的 …
我想将项目上传到存储库,但问题是,当我运行命令时:
$ git push -u origin master
Run Code Online (Sandbox Code Playgroud)
它向我展示了如下内容:
Username:
Password:
error: The requested URL returned error: 403 while accessing https://github.com/sanxelsanto/books3.git/info/refs
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能避免这样的错误信息?
如何使用eclipse将代码提交到GitHub Server中?
当我运行此命令时
git push -u origin master
Run Code Online (Sandbox Code Playgroud)
它显示以下错误
错误:访问https://github.com/something/something时,请求的URL返回错误:403
我已经在我的 win 10 64 位 1903 中安装了 ubuntu 18.04(WSL)。
对于命令git clone https://github.com/facebookresearch/fastText.git,
它在git bash(git for windows) 和ubuntu 18.04shell 中运行良好,但在bash(C:\Windows\System32\bash.exe) 中运行良好,错误消息是
$ git clone https://github.com/facebookresearch/fastText.git
Cloning into 'fastText'...
fatal: unable to access 'https://github.com/facebookresearch/fastText.git/': Could not resolve host: github.com
Run Code Online (Sandbox Code Playgroud)
.gitconfig我的电脑中只有两个文件,一个git bash用于ubuntu 18.04外壳,另一个用于外壳。我认为ubuntu 18.04shellbash在某种程度上可能等于但bash肯定有问题。