报错内容 macOS Terminal 执行 brew update 报错提示如下 fatal: could not read Username for 'https://github.com': terminal prompts disabled 解决办法 git config --global --add url."git@github.com:".insteadOf "https://github.com/" brew update -vvv 重新执行。