Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with Git? #10

Open
dsmaynard opened this issue Aug 12, 2022 · 5 comments
Open

Integration with Git? #10

dsmaynard opened this issue Aug 12, 2022 · 5 comments

Comments

@dsmaynard
Copy link

Is there an easy workflow for using Git with pass-coffin?

@ayushnix
Copy link
Owner

Can you elaborate what you meant to say?

I'm using pass-coffin in a password store tree that is checked into a git repository and pass-coffin works fine in this case.

@dsmaynard
Copy link
Author

dsmaynard commented Aug 12, 2022

Using git with standard pass, you can track changes to individual passwords, revert back to old versions and so on, and you push/pull to git simply with pass git push/pull. If pass-coffin saves the database as a tar file, how exactly do you sync this using git? Presumable pass git push/pull doesn't work anymore -- are there a set of commands specific to pass-coffin that allow you to sync with a remote git server?

If not, how exactly do you go about using pass-coffin with a password store in a git repo? Do you unlock the coffin and then use standard pass git commands?

@ayushnix
Copy link
Owner

Do you unlock the coffin and then use standard pass git commands?

Yeah, if you want to sync changes to your password store tree using git push/pull, you'll need to unlock the repo first. The .git/ folder is preserved in the tar file so everything works as expected after you decrypt the tar file.

Alternatively, you could backup the password store directory itself using a tool like borg at regular intervals.

@dsmaynard
Copy link
Author

Ok -- so then the the list of websites would still be visible on the remote repo, in that they are not contained within the coffin, and the coffin itself never gets pushed to the remote repo?

@ayushnix
Copy link
Owner

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants