git 配置 GitKraken 以使用 Github 推送/获取
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42057508/
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
Configuring GitKraken to push/fetch w/ Github
提问by Alex Bollbach
I am trying to configure GitKraken with a particular repo I have on Github. As far as I can tell, once I give it my local project folder with the repo, it can see the remote. However, trying to push or pull gives me an error Push/Fetch failed. could not connect to origin
.
我正在尝试使用我在 Github 上的特定存储库配置 GitKraken。据我所知,一旦我将我的本地项目文件夹与 repo 一起提供给它,它就可以看到远程。但是,尝试推或拉会给我一个错误Push/Fetch failed. could not connect to origin
。
It seems like it is an issue with authentication and SSH. I've tried to generate public/private keys in GitKrakens preferences auth page and add them to Github under the Github pane, but I get the same errors.
这似乎是身份验证和 SSH 的问题。我尝试在 GitKrakens 首选项身份验证页面中生成公钥/私钥并将它们添加到 Github 窗格下的 Github,但我遇到了相同的错误。
At this point I simply can't get things to work. I'm unfamiliar with the specifics of SSH. What is the issue here and how can I configure GitKraken to push/fetch with my upstream?
在这一点上,我根本无法让事情发挥作用。我不熟悉 SSH 的细节。这里有什么问题,我如何配置 GitKraken 以使用上游推送/获取?
回答by Faris Tangastani
I also had this issue. Because I was trying to pull an organizations repo which was also private I needed to be granted access by the organization to use GitKraken (since it is seen as a third-party). If you go to your Github settings and under Applications -> Authorized OAuth App -> GitKrakenthats where you can apply for permissions to the specific organizations you are assigned to on Github.
我也有这个问题。因为我试图拉出一个也是私有的组织存储库,所以我需要获得组织的访问权限才能使用 GitKraken(因为它被视为第三方)。如果您转到 Github 设置并在应用程序 -> 授权的 OAuth 应用程序 -> GitKraken下,您可以在其中向您在 Github 上分配给的特定组织申请权限。
Hope this helps!
希望这可以帮助!
回答by Pavel Pavlov
I had the same issue. It occurred right after i got back from vacation. The issue was reproducible with one specific repo. It seemed that the GitKraken was not able to remember my GitHub credentials despite the settings I used. I tried both:
我遇到过同样的问题。它发生在我休假回来后。该问题可以通过一个特定的存储库重现。尽管我使用了这些设置,但 GitKraken 似乎无法记住我的 GitHub 凭据。我都试过:
File -> Preferences -> Authentication -> GitHub -> enter my credentials
文件 -> 首选项 -> 身份验证 -> GitHub -> 输入我的凭据
and
和
execute Pullcommand on a branch and enter the credentials there and check the Remember mecheckbox.
在分支上执行Pull命令并在那里输入凭据并选中“记住我”复选框。
Both approaches did not work for me.
这两种方法对我都不起作用。
However, I resolved the issue by deleting the local repo and then File -> Clone Repo -> select GitHub.com tab -> enter credentials
但是,我通过删除本地存储库然后文件 -> 克隆存储库 -> 选择 GitHub.com 选项卡 -> 输入凭据解决了该问题
the clone operation succeeded and GitKraken now remembers me and I can once again work with it as I used to.
克隆操作成功了,GitKraken 现在记住了我,我可以像以前一样再次使用它。