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
This program insecurely caches a session key on the hard drive
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)
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.
Download the NPM-Package asset from the latest release and run npm install --global <The File>
or yarn global add <The File>
.
Clone the repo, and run yarn build:all-rel && yarn global add $PWD
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.