Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-credential-env

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-credential-env

A git credential helper for setting git credentials from environment variables

  • 0.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
79
decreased by-52.41%
Maintainers
1
Weekly downloads
 
Created
Source

git-credential-env

Build status

A git credential helper for setting git credentials from environment variables. Useful for CI deployments with Travis.

quick example

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

The git username will be foo and the password will be bar, i.e. git-credential-env will return:

username=foo
password=bar

You can read more about git credential helpers here: http://git-scm.com/book/en/v2/Git-Tools-Credential-Storage

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

FAQs

Package last updated on 01 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc