https://github.com/purplebooth/git-duet-wrap-for-sops
https://github.com/purplebooth/git-duet-wrap-for-sops
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/purplebooth/git-duet-wrap-for-sops
- Owner: PurpleBooth
- License: cc0-1.0
- Created: 2020-04-28T20:32:29.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-08-03T08:54:15.000Z (almost 2 years ago)
- Last Synced: 2025-01-30T10:44:19.311Z (over 1 year ago)
- Language: Rust
- Size: 192 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Git-Duet: Wrapper for SOPS
I use SOPS for encrypting a few bits an pieces. One thing I like to do
is keep my Dotfiles in a repository, so I thought it might be a neat
thing to keep my git duet authors files encrypted. This saves my pairs
emails from being reveled to the world.
I don't really intend anyone other than me use this.
## Setup
I have it setup like this
tree ~/.bin/git-*
/Users/billie/.bin/git-duet-pre-commit -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-solo -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-duet-install-hook -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-duet-merge -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-duet-revert -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-duet-prepare-commit-msg -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-duet-post-commit -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-duet -> /usr/local/bin/git-duet-wrap-for-sops
/Users/billie/.bin/git-duet-commit -> /usr/local/bin/git-duet-wrap-for-sops
With `$HOME/.bin` on my path.
The name of the binary is used by my script to decide what git duet
command to call.
It expects the your authors file to be encrypted at
`$HOME/.config/git-duet/authors.yml` and you to have a service account
key at `$HOME/.config/gcloud/application_sops_credentials.json`
## Usage
Once setup simply use git-duet as normal.
## Installing
First tap my homebrew repo
``` shell
brew tap PurpleBooth/repo
```
Next install the binary
``` shell
brew install PurpleBooth/repo/git-duet-wrap-for-sops
```
You can also download the [latest
release](https://github.com/PurpleBooth/git-duet-wrap-for-sops/releases/latest)
and run it.
## License
[CC0](LICENSE.md) - Public Domain