happy-git-with-r icon indicating copy to clipboard operation
happy-git-with-r copied to clipboard

PAT storage on Linux

Open steffen-stell opened this issue 1 year ago • 1 comments

Chapter 9.5.3 gives the appearance that git cache or .Renviron are the only PAT storage options on Linux. But there are two better options as can be seen in the documentation: the freedesktop.org Secret Service API and GPG/pass compatible files.

On Gnome-based systems Gnome Keyring uses the freedesktop.org Secret Service API. A simple setup guide can be found here. The equivalent on KDE should be KWallet, as far as I am aware. I think you are not even limited to these options, for example you can also set up KeePassXC for secret service integration.

It would be nice to at least mention these options to prevent people from using the less secure .Renviron option.

steffen-stell avatar Jun 23 '23 20:06 steffen-stell

In addition there is https://github.com/hickford/git-credential-oauth, which even works in headless environments when the device flow is used.

rstub avatar Jul 12 '24 07:07 rstub