Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.
This repository has been archived by the owner on May 24, 2024. It is now read-only.

use gh auth git-credential #1

Open
@aidan-melen

Description

the gh cli now has a credential helper for git.

instead of this

git config --global credential.helper '!f() { sleep 1; echo "username=${GITHUB_USER}"; echo "password=${GH_TOKEN}"; }; f'

you can now run this

git config --global credential.helper '!gh auth git-credential'

source: cli/cli#2449 (comment)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions