How to store Git credentials?

git config --global credential.helper store

or

git config credential.helper store

stackoverflow.com/a/35943882
stackoverflow.com/a/35943882