我使用瀏覽器中的 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 回答
- 0 關注
- 187 瀏覽
添加回答
舉報
0/150
提交
取消