On Fri, 18 Jan 2013 12:18:00 -0500
wor...@alum.mit.edu (Dale R. Worley) wrote:

> > From: lei yang <yanglei.f...@gmail.com>
> > 
> > git config --global sendemail.smtppass  xxxx this will display
> > password in .git config
> > 
> > can we avoid this ?
> The value is in a configuration file which the user can read.  If you
> modify the git code, you can prevent "git config" from printing it,
> but you can't stop the user from looking in the file.

Note that "--global" means storing the password in ~/.gitconfig, which I
doubt is world-readable, and even if it is, disabling this is just a
matter of running `chmod o- ~/.gitconfig`.


Reply via email to