24

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.

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.

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?

Alex Bollbach
  • 4,370
  • 9
  • 32
  • 80
  • Check that your origin URL is correct. It should be something like `git@github.com/...` If you want to use SSH. If you don't want to use SSH, you can just use HTTPS, change your remote to point to the HTTPS URL. – Sumner Evans Feb 05 '17 at 21:30
  • 1
    The fetch/push urls are correct. It just occurred to me that it may be a permissions thing because this is a private repo on a Team. And although the SSH keys configured in my terminal are fetch/pushing, the SSH keys GitKraken generated might need to be authorized by a Team Admin.. possible no? – Alex Bollbach Feb 05 '17 at 21:33
  • I have the same issues on ubuntu inside a virtualbox. – lelabo_m Feb 07 '17 at 11:15
  • I solved it. The fix was to set my repo to use an SSH url instead of https. I guess GitKraken was only compliant with SSH? anyway i was configuring it s SSH settings and not using it in the repo, so a bit of a silly mistake. – Alex Bollbach Feb 09 '17 at 15:13
  • Possible duplicate of [GitKraken won't let me clone from a private repo on GitHub](https://stackoverflow.com/questions/41945280/gitkraken-wont-let-me-clone-from-a-private-repo-on-github) – undrline - Reinstate Monica Jun 19 '19 at 21:44

3 Answers3

61

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 -> GitKraken thats where you can apply for permissions to the specific organizations you are assigned to on Github.

Hope this helps!

How to get to the GitKraken OAuth screen

Clicking grant next to an organisation/team

Kind Contributor
  • 17,547
  • 6
  • 53
  • 70
12

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:

File -> Preferences -> Authentication -> GitHub -> enter my credentials

and

execute Pull command on a branch and enter the credentials there and check the Remember me checkbox.

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

the clone operation succeeded and GitKraken now remembers me and I can once again work with it as I used to.

Pavel Pavlov
  • 697
  • 2
  • 9
  • 18
  • 3
    This is very inefficient as git repo are usually initialized by third party. Should be reported as a bug – tribbloid Mar 12 '18 at 19:38
0

Remove third party access restrictions in GitHub. enter image description here

Bawantha
  • 3,644
  • 4
  • 24
  • 36