git-credential-1password
Helper to store git credentials inside 1password.
Installation
Dependencies
To use this helper you need to install the 1password command-line tool (>=2.8.0) (download)
and of course git.
You also need to setup the command-line tool with your 1password account (guide).
Homebrew
brew tap develerik/tools
brew install git-credential-1password
Arch Linux
On Arch Linux the following packages are available at the AUR:
git-credential-1password
: The latest releasegit-credential-1password-bin
: The latest release (prebuild)git-credential-1password-git
: Builds the currentmain
branch
NixOS
With Nix or NixOS, the package is available as git-credential-1password
from recent releases of nixpkgs
.
From Source
git clone https://github.com/develerik/git-credential-1password.git
cd git-credential-1password
make credential-helper
Move the built binary (inside the bin
directory) to somewhere in your PATH.
Usage
git config --global credential.helper '!git-credential-1password'
Support
This project is maintained by @develerik. Please understand that we won't be able to provide individual support via email. We also believe that help is much more valuable if it's shared publicly, so that more people can benefit from it.
Roadmap
- Maybe an interactive mode for each operation
Contributing
Please read CONTRIBUTING.md for details on our code of conduct.
Maintainers
- Erik Bender - Initial work - develerik
See also the list of contributors who participated in this project.
Acknowledgements
- 1Password for their awesome command-line tool
- Steve (acahir) for his python implementation of a 1password credential helper which inspired me to create this project
- Netlify for their netlify credential helper implemented in Go which helped me a lot on my own implementation
License
Distributed under the ISC License. See LICENSE for more information.