Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Provide a convenient way to add gh cli as a git credential helper #3796

@jongio

Description

@jongio

Describe the feature or problem you’d like to solve

Right now, I have to google and trial and error to get the gh cli wired up as a git credential helper.

This command works:

git config --global 'credential.https://github.com.helper' ''
git config --global --add 'credential.https://github.com.helper' '!gh auth git-credential'

But I would prefer this be baked into the cli.

Proposed solution

Something like:

gh auth setup-git-credential-helper

Which would execute the commands above or the appropriate commands for a given os/arch combination.

Additional context

Add any other context like screenshots or mockups are helpful, if applicable.

azsdke2e
azsdke2e2

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions