diff options
author | Nick Malaguti <nmalaguti@palantir.com> | 2015-06-14 22:16:00 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-06-19 05:01:06 +0300 |
commit | 5018335ce1754a9f771954ecbc1a93acde9b8c0a (patch) | |
tree | fd776399e1bfec15601ef919969d666c28c917eb /doc | |
parent | 765fd4bfca8ea3e2a4a399765b17eec40a3d893d (diff) |
docs: add details about git enviroment variables
Fixed: #8365
PR-URL: https://github.com/npm/npm/pull/8565
Diffstat (limited to 'doc')
-rw-r--r-- | doc/cli/npm-install.md | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/doc/cli/npm-install.md b/doc/cli/npm-install.md index b2f4e077b..be32f7b29 100644 --- a/doc/cli/npm-install.md +++ b/doc/cli/npm-install.md @@ -166,11 +166,24 @@ after packing it up into a tarball (b). `git+https`. If no `<commit-ish>` is specified, then `master` is used. + The following git environment variables are recognized by npm and will be added + to the environment when running git: + + * `GIT_ASKPASS` + * `GIT_PROXY_COMMAND` + * `GIT_SSH` + * `GIT_SSH_COMMAND` + * `GIT_SSL_CAINFO` + * `GIT_SSL_NO_VERIFY` + + See the git man page for details. + Examples: - git+ssh://git@github.com:npm/npm.git#v1.0.27 - git+https://isaacs@github.com/npm/npm.git - git://github.com/npm/npm.git#v1.0.27 + npm install git+ssh://git@github.com:npm/npm.git#v1.0.27 + npm install git+https://isaacs@github.com/npm/npm.git + npm install git://github.com/npm/npm.git#v1.0.27 + GIT_SSH_COMMAND='ssh -i ~/.ssh/custom_ident' npm install git+ssh://git@github.com:npm/npm.git * `npm install <githubname>/<githubrepo>[#<commit-ish>]`: * `npm install github:<githubname>/<githubrepo>[#<commit-ish>]`: |