git credential-store

git helper to store passwords on disk. More information: https://git-scm.com/docs/git-credential-store.

git config credential.helper 'store --file={{path/to/file}}'