Rhy*_*ury 4 git ssh https bitbucket
我知道有很多像我一样的Git问题,我可以向您保证,我一直在抓取网络并尝试所有解决方案,以至于我需要发表自己的问题。
常规信息:
操作系统:Windows 7
Git版本:1.9.0.msysgit.0
ssh版本:OpenSSH_4.6p1,OpenSSL 0.9.8e 2007年2月23日
Git错误消息:
E:\git-projects\project-psl-v3>git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
When push.default is set to 'matching', git will push local branches
to the remote branches that already exist with the same name.
In Git 2.0, Git will default to the more conservative 'simple'
behavior, which only pushes the current branch to the corresponding
remote branch that 'git pull' uses to update the current branch.
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
ssh: bitbucket.org: no address associated with name
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
那么问题来了:
我该如何解决此问题并推送到远程存储库?
我没有在PC上进行任何更改(可能会更新Windows?)。
我可以在本地提交,我有正确的ssh密钥。
我试图克隆另一个仓库,同样的错误信息。
我确实有正确的特权。
我也尝试过通过https,同样的错误消息。
我已经重新安装了ssh和git,同样的错误消息。
我也将dns更改为4.2.2.1和8.8.8.8,相同的错误消息。
我的互联网选项上也没有代理。
解决这个问题的任何其他想法将不胜感激。
提前
加油,瑞斯
我有相同的消息,并且在命令行上将我的设置更改为
git config --global push.default current
Run Code Online (Sandbox Code Playgroud)
...因此它将始终使用我当前的分支作为默认推送。
在您的存储库中,您可以执行a git config -l概述存储库的设置。这将显示所有设置:系统设置,全局设置和项目范围。
关于SSH:是否可能需要在名为“ bitbucket.org”的ssh-config中设置ssh快捷方式,以便能够ssh bitbucket.org在命令行上发出命令?我找到了一些在互联网上搜索“ ssh配置文件”的示例
检查此手册的SSH部分:https : //confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git
| 归档时间: |
|
| 查看次数: |
21805 次 |
| 最近记录: |