简体   繁体   中英

Windows Log github user in git

Anyone know a way to log my github user into Git in Windows 10 to download private dependencies from NPM (I have access to them) but I don't find out how.

I already tried with a git manager ( https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.8.0 ) or set a credential with git config, neither work.

Or how could I add the repo manually to global node_module ?

Any clue how to do it? Any suggestion is welcome.

Maybe try with the same git credential manager, but completed with a npm library taking advantage of said credential helper.
See " nwinkler/git-credential-helper ":

Node library that allows using the Git credential API. The Git credential API allows you to store and retrieve credentials for Git hosts, preventing you from having to enter your username and password every time.
To use this, you have to set up your local Git client installation to make use of a credential helper

A more recent library for the same effect would be git-credential-node ( repo GitHub )

npm install --save git-credential-node

我只需要使用命令NPM到Git Bash就能使用SSH密钥。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM