我越來越想克隆一個Git倉庫,當這個錯誤:致命的:「/ MYORG/myrepo」不似乎是一個Git倉庫
[[email protected] ~]$ git clone git+ssh://[email protected]/myorg/myrepo
Cloning into 'myrepo'...
fatal: '/myorg/myrepo' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我知道庫中存在,因爲該命令的工作:
[[email protected] ~]$ git clone [email protected]:myorg/myrepo
Cloning into 'myrepo'...
remote: Counting objects: 2986, done.
remote: Compressing objects: 88% (1972/2238)
....
我認爲問題是,第一個命令正在混帳搜索回購/myorg/myrepo
,而不是myorg/myrepo
,因爲如果我再補充一點額外的/
到第二個命令,它停止工作,並顯示完全相同的錯誤消息日e第一個:
[[email protected] ~]$ git clone [email protected]:/myorg/myrepo
Cloning into 'myrepo'...
fatal: '/myorg/myrepo' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
如何在此存儲庫中使用SSH語法?
(我想我需要的SSH語法的原因是因爲我想與GIT設置端口轉發)
我敢肯定你需要指定如果您使用SSH,則磁盤上的實際路徑到存儲庫。 – meagar
謝謝,那確實是這個問題。我把完整的路徑,現在它的工作。 – MondKin