Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kchawla-pi/912292aa39a2bbdd8f885f60fea17cbf to your computer and use it in GitHub Desktop.
Save kchawla-pi/912292aa39a2bbdd8f885f60fea17cbf 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