除 golang.org 之外的所有来源上的“go get”git 错误

rol*_*lfk 2 git github go

go 版本 go1.5.1 windows/amd64 git 版本 1.9.5.msysgit.1

我一直在尝试获取一些 Go 库。当在 golang.org 上访问时,它们下载得很好,但 github.com 或 google.golang.org 包会出现错误。

There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details
Run Code Online (Sandbox Code Playgroud)

从 google.golang.org 获取数据时 go get 出错

从 golang.org 获取时 go get 没有给出错误

小智 5

从 GOPATH 中删除该包并重新获取它。你的包被修改了,git 拒绝从上游拉取。