为了账号安全,请及时绑定邮箱和手机立即绑定

go get results in 'terminal prompts disabled'

go get results in 'terminal prompts disabled'

Go
HUH函数 2021-11-01 16:48:31
我使用浏览器中的 Github UI 创建了私有仓库 examplesite/myprivaterepo。然后我转到我的 go 目录(在桌面上)并克隆它:$ cd $GOPATH$ go get github.com/examplesite/myprivaterepo到现在为止还挺好。创建文件 scheduler.go,添加到 repo 并推送。$ vim scheduler.go$ git add scheduler.go$ git commit$ git push一切正常。但是当我找到一台干净的笔记本电脑并尝试克隆 repo 时,出现错误:# Now on laptop, which doesn't yet know about the repo$ cd $GOPATH$ go get github.com/examplesite/myprivaterepo# At this point it should ask for my user ID and password ,right? But it doesn't.# Instead, this error occurs:cd .; git clone https://github.com/examplesite/myprivaterepo /Users/tom/go/src/github.com/examplesite/myprivaterepoCloning into '/Users/tom/go/src/github.com/examplesite/myprivaterepo'...fatal: could not read Username for 'https://github.com': terminal prompts disabledpackage github.com/examplesite/myprivaterepo: exit status 128为什么我的笔记本电脑讨厌我自己的回购,我怎样才能让它接受它的命运?谢谢。
查看完整描述

3 回答

  • 3 回答
  • 0 关注
  • 165 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信