go get results in 'terminal prompts disabled' error for github private repo

前端 未结 7 1525
余生分开走
余生分开走 2020-11-30 16:50

I created the private repo examplesite/myprivaterepo using the Github UI from my browser.

Then I went to my go directory (on the desktop) and cloned it:



        
7条回答
  •  渐次进展
    2020-11-30 17:18

    go get disables the "terminal prompt" by default. This can be changed by setting an environment variable of git:

    env GIT_TERMINAL_PROMPT=1 go get github.com/examplesite/myprivaterepo
    

提交回复
热议问题