首页 > 其他分享> > Go 1.18已解决 fatal: could not read Username for 'https://github.com': terminal prompts disa
Go 1.18已解决 fatal: could not read Username for 'https://github.com': terminal prompts disa
作者:互联网
Environment
Go version 1.18.
Git version 2.32.0.
Github ssh credentials configured.
Supposed to work but not works.
env GIT_TERMINAL_PROMPT=1 go get github.com/xyz/abc
git config --global --add url."git@github.com:".insteadOf "https://github.com/"
Solution.
export GOPRIVATE=github.com/{privateName}/*
go get github.com/{privateName}/*
reference.
https://stackoverflow.com/a/65368910/7972695
标签:Username,github,1.18,disabled,version,https,go,com 来源: https://www.cnblogs.com/mrlonely2018/p/16247898.html