2 ms·
I haven't set this up, but looking at the manpages, it seems you can set git to obtain the password from your password manager (which should keep your password
by jolmg 8y ago
I haven't set this up, but looking at the manpages, it seems you can set git to obtain the password from your password manager (which should keep your password encrypted). From gitcredentials(7):
> Without any credential helpers defined, Git will try the following strategies to ask the user for usernames and passwords:
> 1. If the GIT_ASKPASS environment variable is set, the program specified by the variable is invoked. A suitable prompt is provided to the program on the command line, and the user’s input is read from its standard output.
> 2. Otherwise, if the core.askPass configuration variable is set, its value is used as above.
> 3. Otherwise, if the SSH_ASKPASS environment variable is set, its value is used as above.
> 4. Otherwise, the user is prompted on the terminal.
So, for example, if you're using `pass`, the password-store, you can just set one of these to `pass smtp/me@example.com`, and pass will prompt you for your decryption password for your smtp password.