fatal: could not read Username for 'https://gitee.com': terminal prompts disabled

go get gitee.com/t_group/file-trde-cmon@new
go: gitee.com/wt_group/[email protected]: invalid version: git fetch -f https://gitee.com/wdfp/file-trde-common.git refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /home/wd/go/pkg/mod/cache/2c28f140420731228b8552b71a3dda3b0: exit status 128:
    fatal: could not read Username for 'https://gitee.com': terminal prompts disabled

 

解决方案:环境设置GIT_TERMINAL_PROMPT=1

export GIT_TERMINAL_PROMPT=1
go get XXX

你可能感兴趣的:(fatal: could not read Username for 'https://gitee.com': terminal prompts disabled)