执行go get xxx报错
1、执行命令 go get github.com/go-redis/redis/v8 报错 :
go: coding.jd.com/xxx/xxxxxx@v0.0.0-xxxxxxxxxx: invalid version: git ls-remote -q origin in /users/douhao7/go/pkg/mod/cache/vcs/xxxxxxxxxxxxxx: exit status 128: 致命错误:could not read username for 'http://coding.jd.com': terminal prompts disabled。
修改 ~/.gitconfig
[url "ssh://git@coding.jd.com:"]
insteadOf = https://coding.jd.com/