Last active
October 28, 2020 05:56
-
-
Save giner/459c2d5ea82d1b958c44381597022b05 to your computer and use it in GitHub Desktop.
GIT: store credentials in GNOME Keyring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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