-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't push in a repo cloned by gh clone #195
Comments
You have to add the
|
@vendion An alternative is to set gh.protocol to This is a compatibility bit inherited from Hub. I personally would like to revisit the decision that was made on why /cc @mislav |
@jingweno One caveat with using One way this could be solved is using Application-specific passwords, but even this way @mislav Correct me if I'm wrong, but I use |
Yep, GitHub doesn't support 2FA over git HTTPS. You have to generate a Personal Access Token to use instead of a password. @tgkokk Caching of credentials in git is a solved problem; see In hub, you used to have to pass |
I would like to add that if the user is the owner of the repository being In my usecase I cloned one of my repos with As far as caching of credentials goes OAuth is fine, and even preferred, On Sun, Feb 16, 2014 at 12:24 PM, Mislav Marohnić
|
This is a different kind of authentication. Both hub and gh will handle GitHub API authentication by asking you for your username/password/2FA code and exchanging that for OAuth token. However, neither hub nor gh will handle git protocol authentication, be that over ssh or https. They assume you already have that part set up. |
I'm aware of the difference between the protocols and how they handle
|
Yep, that's the user-friendly behavior. hub started doing that in 1.11 |
Not only user friendly but expected behavior in my opinion. Flags like -p
|
I somehow missed this cuke. I'll make sure it works. @vendion Thanks for reporting! |
This is fixed in |
Thanks for the heads up about the repo switch. Will this require a full On Wed, Oct 15, 2014 at 5:17 PM, Jingwen Owen Ou notifications@github.com
|
@vendion It'll be a full reinstall, since the binary will be |
Using the
gh clone username/repo
syntax to clone a repo I get the following error when trying to pushIt looks like the remote URLs are wrong for the git protocol, as seen in
git remote show origin
Shouldn't the URLs be
git@github.com:username/repo.git
Here is the output of
gh version
The text was updated successfully, but these errors were encountered: