Skip to content

I can call git-credential-manager-core.exe alone to communicate with github.com on Windows? #460

Answered by mjcheetham
xiaofuhub asked this question in Q&A
Discussion options

You must be logged in to vote

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 with git 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:

protocol=<protocol><LF>
host=<host><LF>
path=<path><LF>
username=<username><LF>
<LF>

..where the following placeholders are (for a remote URL of https://mona@github.com/desktop/desktop):

  • <protocol> is the scheme part of the remote URL (the bit before ://), for example https
  • <host> is the hostname (and optional port) from the remo…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ldennington

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question A question about Git Credential Manager
3 participants
Converted from issue

This discussion was converted from issue #457 on September 20, 2021 13:38.