У меня есть два общедоступных репозитория: origin
и peterI
:
C:\Users\[path]\app>git remote -v
origin ssh://manuelM@example.net/~manuelM/public_html/public.git (fetch)
origin ssh://manuelM@example.net/~manuelM/public_html/public.git (push)
peterI ssh://manuelM@example.net/~peterI/public_html/public.git (fetch)
peterI ssh://manuelM@example.net/~peterI/public_html/public.git (push)
Когда я пытаюсь получить последний код из общедоступного репозитория peterI, я получаю эту ошибку:
C:\Users\[path]\app>git fetch
manuelM@example.net's password: [My password]
fatal: '~peterI/public_html/public.git' 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://manuelM@example.net/~peterI/public_html/public.git
.Какие права доступа мне нужно настроить?Может быть, что-то о разрешениях?Спасибо.
ОБНОВЛЕНИЕ 1. Я попробовал то, что Тревор Трейси предложил в своем ответе, но безуспешно:
C:\Users\[path]\app>git remote -v
origin ssh://manuelM@example.net/~manuelM/public_html/public.git (fetch)
origin ssh://manuelM@example.net/~manuelM/public_html/public.git (push)
peterI ssh://manuelM@example.net/~peterI/public_html/public.git (fetch)
peterI ssh://manuelM@example.net/~peterI/public_html/public.git (push)
C:\Users\[path]\app>git remote remove peterI
C:\Users\[path]\app>git remote -v
origin ssh://manuelM@example.net/~manuelM/public_html/public.git (fetch)
origin ssh://manuelM@example.net/~manuelM/public_html/public.git (push)
C:\Users\[path]\app>git remote add peterI ssh://manuelM@example.net/~peterI/public_html/public.git
C:\Users\[path]\app>git remote -v
origin ssh://manuelM@example.net/~manuelM/public_html/public.git (fetch)
origin ssh://manuelM@example.net/~manuelM/public_html/public.git (push)
peterI ssh://manuelM@example.net/~peterI/public_html/public.git (fetch)
peterI ssh://manuelM@example.net/~peterI/public_html/public.git (push)
C:\Users\[path]\app>git fetch peterI
manuelM@example.net's password: [My password]
fatal: '~peterI/public_html/public.git' 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.
C:\Users\[path]\app>
ОБНОВЛЕНИЕ 2. Я пошел посмотреть файл .git \ config и вот чтоЯ вижу в конце этого файла:
[remote "peterI"]
url = ssh://manuelM@example.net/~peterI/public_html/public.git
fetch = +refs/heads/*:refs/remotes/peterI/*
Публичный репозиторий ssh: //manuelM@example.net/~peterI/public_html/public.git, кажется, там.Что я мог делать неправильно?Может быть, мне нужны определенные разрешения для ssh: //manuelM@example.net/~peterI/public_html/public.git?
ОБНОВЛЕНИЕ 3: я начинаю подозревать, что это проблема с разрешениями для файлов и папок вLinux.