AZMCode / git-credential-bw

Rewrite of git-credential-bw-shell in Typescript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI

Bitwarden CLI Git Credential Helper

This is a project to integrate the Bitwarden CLI with Git so as to avoid inconveniences in having to retype a password multiple times, or manage multiple Bitwarden credentials for different sites

Security Warning

This program insecurely caches a session key on the hard drive

Installation

bash <(curl -s https://raw.githubusercontent.com/AZMCode/git-credential-bw/master/devScripts/install.sh) This will automatically install the script using either yarn or npm (Your Choice)

Usage

git config credential.helper bw while inside a repo to set up the helper locally. git config --global credential.helper bw to set up the helper globally.

Manual Installation

Download the NPM-Package asset from the latest release and run npm install --global <The File> or yarn global add <The File>.

Build (Including the docs) and Install Manually

Clone the repo, and run yarn build:all-rel && yarn global add $PWD

Configuration

You can run git config --global --add bw.timeout <Timeout in seconds> to control the timeout for the session key, and to suppress the warning that pops up otherwise 😬. You can set the timeout to -1 to disable it.

Package Documentation

Right Here

About

Rewrite of git-credential-bw-shell in Typescript.

License:MIT License


Languages

Language:TypeScript 49.1%Language:JavaScript 44.8%Language:Shell 6.1%