FFFF Using gh as the credential helper, but with a different path depending on OS? · cli cli · Discussion #9438 · GitHub
[go: up one dir, main page]

Skip to content
Discussion options

You must be logged in to vote

As far as I can tell, you're right that gh auth setup-git doesn't require an argument, however, gh auth git-credential does.

Regardless, I wouldn't expect $ gh auth git-credential to succeed on its own in the shell or otherwise.

What I think is happening under the hood is that whenever git needs to access credentials while running within gh, it'll use this helper, effectively substituting its own git credential calls with gh auth git-credential. Whatever is appended to that call gets passed through gh auth git-credential as the argument.

Thus, I think your approach of adding that bash string to the helper should work as expected, as it will call the proper location of gh auth git-credential

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
4 replies
@C-Loftus
Comment options

@jtmcg
Comment options

Answer selected by C-Loftus
@C-Loftus
Comment options

@Rudxain
Comment options

Comment options

You must be logged in to vote
3 replies
@jtmcg
Comment options

@galah92
Comment options

@jtmcg
Comment options

Comment options

8000
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
reacted with thumbs up emoji
0