gitui
gitui copied to clipboard
Push requires credentials
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
depending on what platform you are on this issue might help you: https://github.com/extrawurst/gitui/issues/800
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

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?
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.
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.
To be clear the request is reasonable. Was genuinely curious as to why https was needed.
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.
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.
anti-stale
For me, this is fixed on master as per #800.
Requires git config --global credential.helper osxkeychain
(on mac).
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!
@lukepighetti can you test if the above fixes it for you too?
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.