git config --global credential.helper store

Category: Git - Core

git config --global credential.helper store

Save credentials to a plaintext file

Caches your username and password in ~/.git-credentials in plain text, so future pushes and pulls skip the prompt. Anyone with access to your home directory can read those credentials. Prefer a helper like cache, libsecret, or an SSH key instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.