我有工作中的手足口病记录。如果我这样做了
git clone git@server:repo.git它正确地克隆了存储库。但是,如果我这样做,它就不起作用了:
git clone ssh://git@server:repo.git
Cloning into repo...
ssh: connect to host port 22: Connection refused
fatal: The remote end hung up unexpectedly问题是,当我使用pip时,我会这样做:
pip install git+ssh://git@server:repo.git当然也会产生以下结果:
Cloning into repo...
ssh: connect to host port 22: Connection refused
fatal: The remote end hung up unexpectedly如果我想这样做:
pip install git+git@server:repo.git 我得到了
ValueError: ('Expected version spec in', 'git+git@server:repo.git', 'at', '+git@server:repo.git')有没有办法配置pip或gitosis,这样我就可以让它工作了?
谢谢,
(请避免使用人造石,如果可以的话,我会这样做)
发布于 2012-03-23 15:46:01
我宁愿使用ssh uri syntax (而不是SCP语法)。
git clone git+ssh://git@server/repo.git发布于 2012-06-12 04:24:25
要安装,您只需运行:
pip install git+git://host/path_to_repo/repo.git因此,对于您的示例:
pip install git+git://server/path_to_repo/repo.githttps://stackoverflow.com/questions/9817976
复制相似问题