“去得到"除golang.org以外的所有来源上的git错误 [英] "go get" git error on all sources but golang.org

查看:48
本文介绍了“去得到"除golang.org以外的所有来源上的git错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

go版本go1.5.1 Windows/amd64git版本1.9.5.msysgit.1

我一直在尝试获取一些Go库.在golang.org上访问它们后,可以很好地下载它们但是github.com或google.golang.org软件包给出了错误.

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

推荐答案

从GOPATH中删除该程序包,然后再次获取它.您的软件包已修改,并且git拒绝从上游拉出.

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

这篇关于“去得到"除golang.org以外的所有来源上的git错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆