Her*_*nan 7 git ssh pip gitosis
我有工作的gitosis repo.如果我做
git clone git@server:repo.git
Run Code Online (Sandbox Code Playgroud)
它正确地克隆了回购.但是,如果我这样做,它就不起作用:
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
Run Code Online (Sandbox Code Playgroud)
问题是,当我使用pipII时:
pip install git+ssh://git@server:repo.git
Run Code Online (Sandbox Code Playgroud)
当然还有:
Cloning into repo...
ssh: connect to host port 22: Connection refused
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
如果我想这样做:
pip install git+git@server:repo.git
Run Code Online (Sandbox Code Playgroud)
我明白了
ValueError: ('Expected version spec in', 'git+git@server:repo.git', 'at', '+git@server:repo.git')
Run Code Online (Sandbox Code Playgroud)
有没有办法配置pip或gitosis所以我可以让它工作?
谢谢,
(请避免'使用gitolite',如果可以,我会的话)
我宁愿使用ssh uri语法(而不是SCP语法)
git clone git+ssh://git@server/repo.git
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3572 次 |
| 最近记录: |