

git config -global credential.helper store Store keeps your username and password in… plain text file! It’s totally insecure and use it only if you don’t care about your account (for example during some kind of workshops). Official description - /docs/git-credential-cache Store credential helper (out of the box) If for some reason you don’t want to install anything, at least use cache :) git config -global credential.helper 'cache -timeout=300' Memory is purged after 900 seconds (15 min) by default, but it can be changed with optional timeout parameter. It’s fine for security, but every time you open new session, you need to type credentials again.

Cache credential helper (out of the box)Ĭache is quite secure because keeps data only in memory. It gives you two options out of the box, but you’re not limited to them - you can install third party solution. Git has built in credential helper mechanism, which allows choosing the way you have credentials persisted. When you want to use external git repository hosting service, like Gitlab or GitHub you need to authorise yourself. Typing username and password every push is burdensome and irritating… libsecret git credential storage to the rescue.
