Skip to content

Instantly share code, notes, and snippets.

@naranjja
Last active June 28, 2018 07:08
Show Gist options
  • Save naranjja/c03bf4f8d8a073f7ba3c8fa2e1ddaf30 to your computer and use it in GitHub Desktop.
Save naranjja/c03bf4f8d8a073f7ba3c8fa2e1ddaf30 to your computer and use it in GitHub Desktop.
Save Git credentials on different *buntu distros
sudo apt-get install ksshaskpass
git config --global core.askpass /usr/bin/ksshaskpass
# unset with git config --global --unset-all core.askpass
sudo apt-get install libgnome-keyring-dev
cd /usr/share/doc/git/contrib/credential/gnome-keyring
sudo make
git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring
# unset with git config --global --unset-all credential.helper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment