Configurar Gnome Keyring com GIT

Published: 2023-01-28, Updated: 2023-01-28

Installing libscret

sudo apt install libsecret-1-0 libsecret-1-dev libglib2.0-dev libsecret-tools

Building Git Libscret extension store

$ cd /usr/share/doc/git/contrib/credential/libsecret
$ sudo su
# make

Configuring libsecret to GIT

git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret

To list the secrets stored, you can use lssecret:

git clone https://github.com/gileshuang/lssecret /tmp/lssecret
cd /tmp/lssecret
make && DESTDIR=/usr/local sudo make install

Get current stored secrets

$ lssecret 
Collection:     Login

Item:   Git: https://github.com/
Key:    protocol
Value:  https
Key:    user
Value:  mageddo
Key:    server
Value:  github.com
Key:    xdg:schema
Value:  org.gnome.keyring.NetworkPassword


$ secret-tool lookup server github.com
<password>

References


Fixando problema de fone bluetooth no Linux Teclado Mecanico qual Comprar

Comments