Skip to content
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

Push requires credentials #1318

Open
lukepighetti opened this issue Sep 8, 2022 · 12 comments
Open

Push requires credentials #1318

lukepighetti opened this issue Sep 8, 2022 · 12 comments
Labels
bug Something isn't working dormant Marked by stale bot on close

Comments

@lukepighetti
Copy link

lukepighetti commented Sep 8, 2022

When I try to push from within gitui I get a modal for username / password. When I do git push on the command line, it uses already established credentials.

My expectation was that gitui push would work just like git push

I am on macOS

@lukepighetti lukepighetti added the bug Something isn't working label Sep 8, 2022
@extrawurst
Copy link
Owner

depending on what platform you are on this issue might help you: #800

@lukepighetti
Copy link
Author

lukepighetti commented Sep 8, 2022

printf "protocol=https\nhost=github.com\n" | git credential fill

produces the result

protocol=https
host=github.com
username=lukepighetti
password=<REDACTED>

you can then type <REDACTED> in to this dialog

Screen Shot 2022-09-08 at 12 31 40 PM

But you have to enter it every time, so I have to keep this in my clipboard to be able to use gitui in an efficient manner. Any suggestions on how to set this up once and forget it?

@heiskane
Copy link
Contributor

Why not just use ssh keys? They work with gitui and they are much better than keeping a plaintext password to your GitHub just sitting there.

@lukepighetti
Copy link
Author

lukepighetti commented Sep 11, 2022

Why not just

It's not possible for you to introspect all of the reasons why I might be using https instead of ssh keys, so let's keep it on topic. The short version is every git tool I use works with my setup except for gitui, which is why this request for support is reasonable.

My suggestion was to offer a simple escape hatch for the time being.

@heiskane
Copy link
Contributor

To be clear the request is reasonable. Was genuinely curious as to why https was needed.

@nispr
Copy link

nispr commented Sep 18, 2022

Why not just use ssh keys?

FYI, it does not seem to be plug&play. I had problems with gitui even though I'm using SSH since the very beginning. Managed to solve it with #1185 (comment).

@stale
Copy link

stale bot commented Mar 18, 2023

This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the dormant Marked by stale bot on close label Mar 18, 2023
@lukepighetti
Copy link
Author

anti-stale

@stale stale bot removed the dormant Marked by stale bot on close label Mar 20, 2023
@fbreuer
Copy link

fbreuer commented Apr 13, 2023

For me, this is fixed on master as per #800.

Requires git config --global credential.helper osxkeychain (on mac).

@cauliyang
Copy link

For me, this is fixed on master as per #800.

Requires git config --global credential.helper osxkeychain (on mac).

@fbreuer, fix my issue as well. Thanks!

@extrawurst
Copy link
Owner

@lukepighetti can you test if the above fixes it for you too?

Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the dormant Marked by stale bot on close label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dormant Marked by stale bot on close
Projects
None yet
Development

No branches or pull requests

6 participants