my dumb mistake

Aleksei Fedotov lexa at
Tue Jan 15 21:58:37 CET 2019

Joshua N Pritikin <jpritikin at> writes:

> To create a new password entry for "foo," I typed "pass edit foo" in one 
> terminal window. Then I forgot and entered the same thing in another 
> terminal window. I closed them in the wrong order and wiped out my 
> changes.
> At the beginning of "pass edit foo", would it be possible to snapshot 
> the previous version of the file? Then if the file didn't match it's 
> snapshot, the user could be warned.
> Maybe there is a race condition here, but better to have a safety check 
> that usually works than no safety check.

If you store your passwords in a Git repository, they are automatically
tracked by pass. Any edits are committed to the repository and any
accidental changes could be reverted.

Git would have not protected you from the case you described, but it
protects you from losing data and makes all changes traceable and


More information about the Password-Store mailing list