Skip to content

Instantly share code, notes, and snippets.

@P403n1x87
Created July 21, 2020 08:59
Show Gist options
  • Save P403n1x87/62fddacaa6c3db4c0d6dcb6bc74d7177 to your computer and use it in GitHub Desktop.
Save P403n1x87/62fddacaa6c3db4c0d6dcb6bc74d7177 to your computer and use it in GitHub Desktop.
Store git credentials securely on Ubuntu
#!/bin/bash
set -e
sudo apt-get -y install libsecret-1-0 libsecret-1-dev libglib2.0-dev
sudo make --directory=/usr/share/doc/git/contrib/credential/libsecret
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment