除golang.org以外的所有来源均出现“ go get” git错误

go version go1.5.1 windows/amd64 git version 1.9.5.msysgit.1

I have been trying to get some Go libraries. They are downloaded fine, when accessed on golang.org but github.com or google.golang.org packages give an error.

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

go get gives an error when fetching from google.golang.org

go get gives no error when fetching from golang.org

Have you tried this?

git branch --set-upstream-to=origin/master master

In case your branch is different than "master" you can confirm it with:

git remote -v

Delete the package from GOPATH and go get it again. Your package is modified and git is refusing to pull from upstream.