报错取りに行く:致命的:ターミナルのプロンプト無効にユーザー名を...読むことができませんでした

问题、端末プロンプトは無効

エラーを取りに行きます terminal prompts disabled

go get xxx.com/xxx/xxx
# cd .; git clone https://xxx.com/xxx/xxx.git
Cloning into 'xxx'...
fatal: could not read Username for 'https://xxx.com: terminal prompts disabled
package xxx: exit status 128

ソリューション

オプション1

一時的な解決策:手動でユーザー名とパスワードを入力してください

env GIT_TERMINAL_PROMPT=1 go get xxx.com/xxx/xxx

オプションII

長期的な解決策:設定されているキーのgitを使います

GitHubのにたとえば、

git config --global --add url."[email protected]:".insteadOf "https://github.com/"
公開された27元の記事 ウォンの賞賛2 ビュー50000 +

おすすめ

転載: blog.csdn.net/jackgo73/article/details/90604180