[pass] Using pass with git config core.askpass

Alexander Baier alexander.baier at mailbox.org
Tue Nov 18 22:41:00 CET 2014


Hello,

I would like to use pass to supply git with login information when
accessing a remote repository (e.g. on github).  I put the following
section into my ~/.gitconfig:

[core]
    askpass = pass show Code/github.com

Doing 'git push' will now print

  "error: cannot run 'pass show Code/github.com': No such file or
  directory"
  
and will continue with prompting me for my username and password:

  Username for 'https://github.com':
  Password for 'https://user@github.com'

Does anyone know how I can tell git to use pass for retrieving my
credentials?

Regards,
-- 
Alexander Baier



More information about the Password-Store mailing list