Skip to content
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 opened this issue Feb 24, 2022 · 1 comment
Open

use gh auth git-credential #1

aidan-melen opened this issue Feb 24, 2022 · 1 comment

Comments

@aidan-melen
Copy link

aidan-melen commented Feb 24, 2022

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)

@meee500
Copy link

meee500 commented Mar 29, 2022

Good

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants