gitui icon indicating copy to clipboard operation
gitui copied to clipboard

Push requires credentials

Open lukepighetti opened this issue 2 years ago • 12 comments

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 avatar Sep 08 '22 14:09 lukepighetti

depending on what platform you are on this issue might help you: https://github.com/extrawurst/gitui/issues/800

extrawurst avatar Sep 08 '22 14:09 extrawurst

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?

lukepighetti avatar Sep 08 '22 16:09 lukepighetti

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.

heiskane avatar Sep 11 '22 03:09 heiskane

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.

lukepighetti avatar Sep 11 '22 14:09 lukepighetti

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

heiskane avatar Sep 11 '22 15:09 heiskane

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 https://github.com/extrawurst/gitui/issues/1185#issuecomment-1236225011.

nispr avatar Sep 18 '22 21:09 nispr

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[bot] avatar Mar 18 '23 06:03 stale[bot]

anti-stale

lukepighetti avatar Mar 20 '23 17:03 lukepighetti

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

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

fbreuer avatar Apr 13 '23 08:04 fbreuer

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!

cauliyang avatar Jul 05 '23 16:07 cauliyang

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

extrawurst avatar Aug 30 '23 15:08 extrawurst

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[bot] avatar Mar 17 '24 15:03 stale[bot]