-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
bugSomething isn't workingSomething isn't workingpriority-2Affects more than a few users but doesn't prevent core functionsAffects more than a few users but doesn't prevent core functions
Description
After using gh auth login and choosing HTTPS mode to authenticate git with GitHub, brew update prints this warning:
$ brew update
gh auth git-credential get: gh: command not found
fatal: could not read Username for 'https://github.com': terminal prompts disabled
This is because gh sets this up in the global gitconfig:
[credential "https://github.com"]
helper = !gh auth git-credential
The gh binary is to be found in /usr/local/bin/gh when installed with Homebrew. However, when running brew commands, the PATH does not include /usr/local/bin.
A potential solution would be to reference gh by its full path from git credential configuration.
Ref. #2449
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpriority-2Affects more than a few users but doesn't prevent core functionsAffects more than a few users but doesn't prevent core functions