Currently, whenever I
git pull or
git push to a http(s) repository, I get the following:
$ git pull Username for 'https://gitrepos.reposdomain.com': email@example.com Password for 'https://firstname.lastname@example.org@gitrepos.reposdomain.com':
This is ok for infrequent use, but starts to become really annoying very quickly. Unfortunately, switching to ssh is not an option in this case.
I've read that earlier versions of
git provided a credential "store" and "cache", but that this wasn't advised because it stored the password in plaintext.
Newer versions of
git apparently store git credentials in the
gnome-keyring, but it has to be set up correctly.
I've tried following other (non-Ubuntu) answers on SO to get this to work (namely this one), but I'm still presented with the username and password prompt.
What is the correct and safest way to store
git credentials for http(s) repos and how does one make them work on Ubuntu?