Store Git password¶
By default, on linux, git does not store passwords (for HTTP connections), so you have to enter it again and again.
To prevent this, it is now possible to use libsecret, a dedicated way to store password in a generic manner.
To enable this, it is needed to install some libs and compute some files for Git.
Install libsecret¶
sudo apt-get install libsecret-1-0 libsecret-1-dev build-essential
Compile git part¶
sudo make --directory=/usr/share/doc/git/contrib/credential/libsecret
Register the credential helper¶
This will register the credential helper based on libsecret for the current git repository:
git config credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
If you want to use it globally simply add --global (after git config).