pass - Installation

sudo apt-get install pass

Initialize with key

1. Initialize pass tool with gpg key id

pass init <id of gpg-key>

mkdir: created directory '$HOME/.password-store/'
Password store initialized for <gpg-key id/pub key id>

2. Use git repository to records pass change/modify status

pass git init

Initialized empty Git repository in $HOME/.password-store/.git/

3. Setup remote git repository to backup password

pass git remote add origin <remote-rep-url>

4. Upload to remote git repository

pass git push -u origin main:HEAD