macos mac 同步 github 失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9610145/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
github for mac sync failed
提问by Cool Guy Yo
I am using the github for mac app http://desktop.github.com/and every time I try to sync a branch I get a A network error occurred. We could not sync with the server.
Everything was working fine earlier and my machine other machine is able to run sync fine with the same app. I am not sure how to ge about debugging this.
我正在使用 github for mac 应用程序http://desktop.github.com/每次我尝试同步一个分支时,我都会得到一个A network error occurred. We could not sync with the server.
一切都工作正常,我的机器其他机器能够与同一个应用程序正常运行. 我不知道如何调试这个。
采纳答案by Cool Guy Yo
Found Out Why Just got this email from github, Crazy.
找出原因 刚从 github 收到这封电子邮件,Crazy。
A security vulnerability was recently discovered that made it possible for an attacker to add new SSH keys to arbitrary GitHub user accounts. This would have provided an attacker with clone/pull access to repositories with read permissions, and clone/pull/push access to repositories with write permissions. As of 5:53 PM UTC on Sunday, March 4th the vulnerability no longer exists.
最近发现了一个安全漏洞,攻击者可以利用该漏洞将新的 SSH 密钥添加到任意 GitHub 用户帐户。这将为攻击者提供对具有读取权限的存储库的克隆/拉取访问权限,以及对具有写入权限的存储库的克隆/拉取/推送访问权限。截至 UTC 时间 3 月 4 日星期日下午 5:53,该漏洞不再存在。
While no known malicious activity has been reported, we are taking additional precautions by forcing an audit of all existing SSH keys.
虽然没有报告已知的恶意活动,但我们正在采取额外的预防措施,强制审核所有现有的 SSH 密钥。
Required Action
所需操作
Since you have one or more SSH keys associated with your GitHub account you must visit https://github.com/settings/ssh/auditto approve each valid SSH key.
由于您有一个或多个 SSH 密钥与您的 GitHub 帐户相关联,因此您必须访问https://github.com/settings/ssh/audit以批准每个有效的 SSH 密钥。
Until you have approved your SSH keys, you will be unable to clone/pull/push your repositories over SSH.
在您批准 SSH 密钥之前,您将无法通过 SSH 克隆/拉取/推送您的存储库。
Status
地位
We take security seriously and recognize this never should have happened. In addition to a full code audit, we have taken the following measures to enhance the security of your account:
我们认真对待安全问题,并认识到这本不应该发生。除了全码审计外,我们还采取了以下措施来增强您的账户安全:
- We are forcing an audit of all existing SSH keys
- Adding a new SSH key will now prompt for your password
- We will now email you any time a new SSH key is added to your account
- You now have access to a log of account changes in your Account Settings page Sincerely, The GitHub Team
- 我们正在强制审核所有现有的 SSH 密钥
- 添加新的 SSH 密钥现在将提示您输入密码
- 我们现在会在您的帐户中添加新的 SSH 密钥时通过电子邮件发送给您
- 您现在可以访问帐户设置页面中的帐户更改日志 此致,GitHub 团队
回答by David John Smith
I just resolved the same issue on a repo of mine. I had initially cloned the repo in Terminal with git://github.com/djs070/reservedpaths
, before switching to Github for Mac client. I went to repo settings in Github for Mac and changed the Primary Remote Repository setting to the format [email protected]:djs070/reservedpaths.git
, and was then able to sync to remote without any trouble.
我刚刚在我的回购中解决了同样的问题。git://github.com/djs070/reservedpaths
在切换到 Mac 客户端的 Github 之前,我最初使用 克隆了终端中的 repo 。我转到 Mac 版 Github 中的 repo 设置并将 Primary Remote Repository 设置更改为 format [email protected]:djs070/reservedpaths.git
,然后就可以毫无问题地同步到远程了。