Skip to content

🔐 A git credential helper for setting git credentials from environment variables

License

Notifications You must be signed in to change notification settings

L33T-KR3W/git-credential-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-credential-env

Version Build status Stability

A Git credential helper for setting Git credentials from environment variables. Useful for CI deployments with Travis CI, CircleCI, and others.

Quick Example

Global Installation

npm install -g git-credential-env
GIT_USER=foo
GIT_PASS=bar
git config credential.helper "env --username=GIT_USER --password=GIT_PASS"

Local Installation (recommended)

npm install git-credential-env
GIT_USER=foo
GIT_PASS=bar
git config credential.helper "$PWD/node_modules/.bin/git-credential-env --username=GIT_USER --password=GIT_PASS"

In both examples, the username foo and password bar will be provided as credentials when requested by Git.

Usage

Usage: git-credential-env get {OPTIONS}

Options:

  --username, -u  The name of environment variable containing the Git username

  --password, -p  The name of environment variable containing the Git password

Documentation

See the Wiki for full documentation.

About

🔐 A git credential helper for setting git credentials from environment variables

Resources

License

Stars

Watchers

Forks

Packages

No packages published