You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for authenticating non-GitHub remotes #852
This is an open discussion what we should target for the beta, if anything. We can spin off specific tasks and put those into the appropriate milestones.
Some things that should cover most of the use cases we've seen based on Desktop Classic:
let the user specify credentials when an authentication fails?
managing credentials - list stored creds, let user remove
Aside from that, if we're keen to do this we'd need to update our getUserForRepository lookup to be more flexible (e.g. if not marked as a GitHub repository, lookup for credentials by the remote URL)
Reacted by Brian Gianforcaro, Jakob Müller, Anders Wåglund, Eugene Bekker, Matthew French, Dan, Adam, Allan Kimmer Jensen, Jarek Radosz, Sharangowda s patil and 25 more
It would be very nice to have this. At the moment I have both a git bash and desktop open. Desktop for visuals and bash to push changes. Can't push changes from desktop until authorization is working.
@joshaber When you go to Github Desktop The first thing that appears is the Beta, and hidden in the bottom is the current one. So, yeah, it might be a beta, but it is promoted as a first choice. So non-GitHub support is to be expected.
Reacted by Keyvan Khademi Ravandi, gkTim, Adam, William Dibbern, Allan Kimmer Jensen, Fluccioni, Björn Ritzl, Caleb, Gabriel, fgoepel and 10 more
I use both Github and VSTS repos with classic quite often. I was a little disappointed to find I can't use this for VSTS. Is a stop-gap of calling the underlying git commands feasible? git push works just fine from the shell.
I don't think this is necessary right away, but I still think it is very important if GitHub Desktop is going to really be used as more than a hobby tool.
Reacted by Adam Waller, Felix Schröter, Glenn Batuyong, stefnotch and Hedvig Skirgård
Today updated the deskTop client, I has always liked this client, but this update found that if it is not GitHub warehouse, you will can not pull and push, you need authentication, but it did not provide authentication interface,
It's really disappointing, and I hope developers can work it out quickly.
Reacted by Bas van den Brink, 冯松, Muhammad Ibnuh, ocean, Neo, Albert Sanchez, Luiz Felippe and Andrew Payne
I really like GitHub Desktop but I also have to work with VSTS, Bitbucket & GitLab at work for different projects and it would be nice if GitHub Desktop would support that as well.
Reacted by 冯松, Hedvig Skirgård, moofMonkey, Neo, Shahab Sotouni, turner11 and Michael Morrison
Confirmed that the beta cannot properly authenticate against Pantheon Drush repos in order to clone dev projects. It doesn't error out. It just throws a never-ending spinner icon in the dialog.
My dream would be that GitLab, Bitbucket, etc. get first level integrations including OAuth login, repository browser (when the feature is added: #57) and maybe some of other website integrations like branch comparing, viewing the repository, opening a commit.
But as this is a product by GitHub itself this is probably just a wish that will never come true.
Works for Pantheon's Drush-based repositories but requires a few extra steps:
On Mac, you may get a brief, non-interactive error when the repo asks for login: Error: ssh_askpass: exec(/usr/X11R6/bin/ssh-askpass): No such file or directory
Seeing a new ssh-askpass error when attempting to fetch/sync in the new GitHub desktop app?
If you are using macOS 10.13 High Sierra and /usr/X11R6 disappeared, don't panic. Yes it's gone and symbolic linking in /usr cannot be done due to SIP. There is a simple workaround: theseal/ssh-askpass#18 (comment)
I connected github desktop to a local gitlab server as follows:
install github desktop for windows 64-bit v1.2.6
install git version 2.18.0.windows.1
create a Personal Access Token [https://gitlab.mydomain.com/profile/personal_access_tokens] in gitlab for API access
create a 'Project' in gitlab to contain your new repository. For empty projects, gitlab displays instructions on the Project Details page explaining how to connect your project to another git instance, including these instructions for connecting to an existing folder:
use the access token name and password as the username and password when prompted to connect
(Windows) - if you get a login error without being prompted for a username and password, open "manage your credentials" in Control Panel, select "Windows Credentials", then find and edit the credentials for your gitlab server.
If you now connect to this repository in Github Desktop it is properly configured to communicate with your gitlab server. The first time you push or pull to the server you will need to enter the same API Token credentials that were used in the git command line above.
(Note: I may have been required to do this using a personal access token because my gitlab server has mandatory 2 factor authentication enabled)
Activity
joshaber commentedon Jan 26, 2017
I don't think we need to for beta, but maybe for 1.0.
Anyone feel strongly this should be in beta?
[-]support for handling non-GitHub remotes[/-][+]Support for authenticating non-GitHub remotes[/+]MatthewFrench commentedon May 22, 2017
It would be very nice to have this. At the moment I have both a git bash and desktop open. Desktop for visuals and bash to push changes. Can't push changes from desktop until authorization is working.
blogcraft commentedon May 24, 2017
@joshaber When you go to Github Desktop The first thing that appears is the Beta, and hidden in the bottom is the current one. So, yeah, it might be a beta, but it is promoted as a first choice. So non-GitHub support is to be expected.
bjcull commentedon Jun 2, 2017
I use both Github and VSTS repos with classic quite often. I was a little disappointed to find I can't use this for VSTS. Is a stop-gap of calling the underlying git commands feasible? git push works just fine from the shell.
tech4him1 commentedon Jun 6, 2017
I don't think this is necessary right away, but I still think it is very important if GitHub Desktop is going to really be used as more than a hobby tool.
fengsong97 commentedon Jun 14, 2017
今天更新了 deskTop客户端,一直挺喜欢这个客户端的, 但是这次更新发现,如果不是 github 仓库的话 , 就无法pull 和 push ,需要认证,但是却没有提供认证界面,
这真的让人失望 ,希望开发人员能够快点解决这个问题。
Today updated the deskTop client, I has always liked this client, but this update found that if it is not GitHub warehouse, you will can not pull and push, you need authentication, but it did not provide authentication interface,
It's really disappointing, and I hope developers can work it out quickly.
mikeytusa commentedon Jun 24, 2017
Definitely need to be able to use this with non-GitHub repos. Works fine on my Mac. Authentication fails on Windows.
felschr commentedon Jul 1, 2017
I really like GitHub Desktop but I also have to work with VSTS, Bitbucket & GitLab at work for different projects and it would be nice if GitHub Desktop would support that as well.
fengsong97 commentedon Jul 5, 2017
The GithubDeskTop of old version link for non-GitHub can be supported .
example: oschina.com gitlab .....
链接:http://pan.baidu.com/s/1jH4l3Lk 密码password : v9ag
47ronin commentedon Jul 5, 2017
Confirmed that the beta cannot properly authenticate against Pantheon Drush repos in order to clone dev projects. It doesn't error out. It just throws a never-ending spinner icon in the dialog.
felschr commentedon Jul 6, 2017
My dream would be that GitLab, Bitbucket, etc. get first level integrations including OAuth login, repository browser (when the feature is added: #57) and maybe some of other website integrations like branch comparing, viewing the repository, opening a commit.
But as this is a product by GitHub itself this is probably just a wish that will never come true.
JimMorrison723 commentedon Jul 7, 2017
Is there any ETA for this (non-Github repo support)? Or should i just go back to the 'old' client and wait for the first stable version? :)
9 remaining items
felschr commentedon Aug 22, 2017
@mikeytusa It's working for me with Bitbucket.
It only work with HTTPS and not SSH (at the moment).
mikeytusa commentedon Aug 23, 2017
@felschr ah, yes that would be it. I'm using SSH for authentication.
nagman commentedon Aug 23, 2017
It doesn't work for me neither. I can't connect to my private git repo.
Windows -> Github Desktop -> ssh to my private git repo on a local NAS.
Growiel commentedon Aug 24, 2017
Working for me in HTTPS, not at all in SSH, as already mentioned.
47ronin commentedon Aug 28, 2017
Works for Pantheon's Drush-based repositories but requires a few extra steps:
ssh_askpass: exec(/usr/X11R6/bin/ssh-askpass): No such file or directoryThis works, and creates a password modal in GitHub Desktop (beta). However, the password is never saved so it must be entered with each transaction.
HedvigS commentedon Sep 29, 2017
Is there any news about GitHub Desktop being able to handle other remote services, like GitLab? What's the plan?
I tried reading this thread, but it's quite hard to follow.
mikeytusa commentedon Sep 29, 2017
On a PC it doesn't support SSH. Works over HTTPS. It works on Mac though. Not sure why it hasn't been implemented yet on a PC.
HedvigS commentedon Sep 29, 2017
Thanks @mikeytusa . How does it work on a mac?
shiftkey commentedon Oct 2, 2017
For those who are looking at SSH support, we're tracking the current pain points over here #2579.
If you're using HTTPS, the work done to support basic credentials from other providers has landed in 1.0.
47ronin commentedon Oct 10, 2017
Seeing a new
ssh-askpasserror when attempting to fetch/sync in the new GitHub desktop app?If you are using macOS 10.13 High Sierra and
/usr/X11R6disappeared, don't panic. Yes it's gone and symbolic linking in/usrcannot be done due to SIP. There is a simple workaround:theseal/ssh-askpass#18 (comment)
mmccarn commentedon Jul 4, 2018
I connected github desktop to a local gitlab server as follows:
If you now connect to this repository in Github Desktop it is properly configured to communicate with your gitlab server. The first time you push or pull to the server you will need to enter the same API Token credentials that were used in the git command line above.
(Note: I may have been required to do this using a personal access token because my gitlab server has mandatory 2 factor authentication enabled)