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

前端 未结 7 1539
余生分开走
余生分开走 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:17

    If you just want go get to work real fast, and move along with your work...

    Just export GIT_TERMINAL_PROMPT=1

    $ export GIT_TERMINAL_PROMPT=1
    $ go get [whatever]
    

    It will now prompt you for a user/pass for the rest of your shell session. Put this in your .profile or setup git as above for a more permanent solution.

提交回复
热议问题