小编Zan*_*ong的帖子

得到'致命:分支'主人'在git中不存在'

使用git了一段时间,它非常强大和美丽..

但也有些困惑:

在我初始化git repo后它应该在分支主人之下,不是吗?

但是git branch -a,我没有得到任何人.当我尝试为我的分支设置上游时
,我得到了fatal: branch 'master' does not exist.

users@debian MINGW64 ~/Desktop/taste
$ git init
Initialized empty Git repository in C:/Users/users/Desktop/taste/.git/

users@debian MINGW64 ~/Desktop/taste (master)
$ git remote add origin git@gitee.com:greedev/Test.git

users@debian MINGW64 ~/Desktop/taste (master)
$ git branch -u origin/master
fatal: branch 'master' does not exist

users@debian MINGW64 ~/Desktop/taste (master)
$ git branch -a

users@debian MINGW64 ~/Desktop/taste (master)
$ git fetch
The authenticity of host 'gitee.com (120.55.226.24)' can't be established. …
Run Code Online (Sandbox Code Playgroud)

git git-branch

17
推荐指数
2
解决办法
2万
查看次数

我如何在我自己的 nexus pypi 存储库中使用 pip 搜索?

我在局域网中部署了一个 nexus 存储库系统,并在其上配置了一个 PyPI 存储库。我可以用pip install我的私人镜像安装包。但我不能使用pip search.

这是我的 pip.ini

[global]
index-url = http://nexus.repo.com/repository/PyPI/simple
index = http://nexus.repo.com/repository/PyPI/pypi
trusted-host = nexus.repo.com
Run Code Online (Sandbox Code Playgroud)

当我使用pip search它时返回:

C:\Users\user>pip search redis
HTTP 错误 404,同时获取http://nexus.repo.com/repository/PyPI/pypi
异常:
回溯(最近一次调用):
文件“c:\python27\lib\site -packages\pip\basecommand.py", line 215, in main status = self.run(options, args)
File "c:\python27\lib\site-packages\pip\commands\search.py​​", line 45,在运行 pypi_hits = self.search(query, options)
File "c:\python27\lib\site-packages\pip\commands\search.py​​", line 62, in search hits = pypi.search({'name': query, 'summary': query}, 'or')
File "c:\python27\lib\xmlrpclib.py", line 1243, in call return self.__send(self.__name, args)
文件“c:\python27\lib\xmlrpclib.py”,第 1602 行,在 __request …

python proxy pip nexus python-2.7

5
推荐指数
1
解决办法
8249
查看次数

golang:如何在 Go 中连接多个 MySQL 数据库?

同时操作3个或更多数据库,读/写分离,有连接池。

mysql go

-3
推荐指数
1
解决办法
6233
查看次数

标签 统计

git ×1

git-branch ×1

go ×1

mysql ×1

nexus ×1

pip ×1

proxy ×1

python ×1

python-2.7 ×1