git-credential-1password icon indicating copy to clipboard operation
git-credential-1password copied to clipboard

A git credential helper for 1Password

git-credential-1password

license Go Report Card CodeQL

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 release
  • git-credential-1password-bin: The latest release (prebuild)
  • git-credential-1password-git: Builds the current main branch

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

See also the list of contributors who participated in this project.

Acknowledgements

License

Distributed under the ISC License. See LICENSE for more information.