Vin*_*nce 4 git ssh bitbucket-server
我有一个在存储服务器上运行的git-repository.通过http正常工作克隆存储库
git clone http://user@server:7990/a/b/sandbox.git
Run Code Online (Sandbox Code Playgroud)
出于某种奇怪的原因,当我切换http使用ssh,并与它的端口,它给了我
git clone ssh://user@server:7999/a/b/sandbox.git
Cloning into sandbox...
fatal: remote error: Remote URL invalid
A repository could not be determined from the remote URL. Please confirm the
clone URL in Stash and try again. URL suffix: '/scm/ct/sandbox.git'
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
服务器已ssh启用且端口设置为7999.怎么来的,当通过ssh而不是发送请求时它找不到存储库http?
问题解决了.出于某种原因,存储库的SSH-URL后缀与HTTP-URL后缀不同.在发现之后,它起作用了.
编辑:
http-url藏匿给了我user@server:7990/a/b/sandbox.git,而ssh-url藏匿给了我user@server:7999/b/sandbox.git(其中a和b当然是占位符).
正如评论中提到的那样,我应该将其添加到我的答案中.
| 归档时间: |
|
| 查看次数: |
13224 次 |
| 最近记录: |