我想安装 mongoDB 驱动程序。当我输入这个命令时go get go.mongodb.org/mongo-driver/mongo我有 : # cd /Users/jiangwei/go/src/go.mongodb.org/mongo-driver; git pull --ff-only There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull <remote> <branch> If you wish to set tracking information for this branch you can do so with: git branch --set-upstream-to=origin/<branch> master package go.mongodb.org/mongo-driver/mongo: exit status 1
1 回答
胡子哥哥
TA贡献1825条经验 获得超6个赞
可能是因为您已经将该存储库检出到您的 Go 路径中,并且已更改为非默认分支。纠正它的最简单方法是删除该存储库,然后从头开始。
rm -rf $(go env GOPATH)/src/go.mongodb.org/mongo-driver
当然,这将丢失您在该存储库中所做的任何更改。
- 1 回答
- 0 关注
- 127 浏览
添加回答
举报
0/150
提交
取消