I can call git-credential-manager-core.exe alone to communicate with github.com on Windows? #460
-
Feature description A clear and concise description of the new feature. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I would first ask why are you wanting to call GCM directly? Interacting with GCM like Git does is not easy. You can call That is to say (1) call the
..where the following placeholders are (for a remote URL of
and then use the credentials that GCM returns. Next (important) if the credentials are OK, you must (2a) follow up with a call to If the credential you get back from (1) is NOT ok, then (2b) call |
Beta Was this translation helpful? Give feedback.
I would first ask why are you wanting to call GCM directly? Interacting with GCM like Git does is not easy.
You can call
git-credential-manager-core.exe
directly (as opposed to via Git itself withgit credential
), but you must follow the conventions set by Git when it calls GCM.That is to say (1) call the
get
command and pass the following over standard input:..where the following placeholders are (for a remote URL of
https://[email protected]/desktop/desktop
):<protocol>
is the scheme part of the remote URL (the bit before://
), for examplehttps
<host>
is the hostname (and optional port) from the remo…