Skip to content

Instantly share code, notes, and snippets.

@giner
Last active October 28, 2020 05:56
Show Gist options
  • Save giner/459c2d5ea82d1b958c44381597022b05 to your computer and use it in GitHub Desktop.
Save giner/459c2d5ea82d1b958c44381597022b05 to your computer and use it in GitHub Desktop.
GIT: store credentials in GNOME Keyring
sudo apt install libsecret-1-dev
dest_bin="$HOME/bin/git-credential-libsecret"
# Compile git-credential-libsecret
cd "$(mktemp -d)"
cp /usr/share/doc/git/contrib/credential/libsecret/* .
make
# Install git-credential-libsecret
mkdir -p "$HOME/bin"
cp git-credential-libsecret "$dest_bin"
# Configure git to use git-credential-libsecret
git config --global credential.helper "$dest_bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment