使用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) 我在局域网中部署了一个 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 …