Не могу заставить git server работать на windows. роковое: <path>не похоже на git-репозиторий - PullRequest
0 голосов
/ 15 ноября 2018

Пробовал много путей, но не может исправить ошибку с пустым git-репозиторием.

PowerShell (от имени администратора):

PS C:\Windows\system32> git clone user@host:C:/s.git
Cloning into 's'...
fatal: ''C:/s.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.

создан репозиторий git:

PS C:\> git init --bare s.git
Initialized empty Git repository in C:/s.git/

Сервер: Windows Server 2008 R2 Standard x64 Клиент: Windows 10 Home Single Language x64

И сервер, и клиент:

OpenSSH v7.7.2.0p1-Beta x64

и

PS C:\> git --version
git version 2.19.1.windows.1

Я прочитал этоответы неустранимый: не похоже на git-репозиторий , но сообщение об ошибке немного отличается и это не помогает.

также я попытался:

PS C:\> git init s.git
Initialized empty Git repository in C:/s.git/.git/
PS C:\> cd .\s.git\
PS C:\s.git> git remote add origin user@host:C:/s.git
PS C:\s.git> git remote update
Fetching origin
fatal: ''C:/s.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.
error: Could not fetch origin

Помощьпожалуйста!

...