Гость
Форумы / Управление процессом разработки ИС [игнор отключен] [закрыт для гостей] / Удаленный репозиторий Git does not appear to be a git repository / 3 сообщений из 3, страница 1 из 1
07.04.2014, 17:48
    #38607568
hyp1k
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Удаленный репозиторий Git does not appear to be a git repository
Выполняю команды: подключиося по ssh к серверу, инициализировал на нем bare репозиторий, отключился. Дальше просто пробую проверить корректность url ssh строки командой git-ls-remote 4 разными способами, на все получаю does not appear to be a git repository. Что-то я не так понимаю????

Команды:

localUser@localMachine ~/desktop/manacc (master)
$ ssh git@mydomain.ru
Last
login: Mon Apr 7 17:00:42 2014 from xxxx

git@main ~
$ cd ManAcc

git@main ~/ManAcc
$ git --bare init
Reinitialized existing Git repository in C:/cygwin64/home/git/ManAcc/

git@main ~/ManAcc
$ exit
logout
Connection to mydomain.ru closed.

localUser@localMachine ~/desktop/manacc (master)
$ git-ls-remote ssh://git@mydomain.ru/home/git/ManAcc
fatal: '/home/git/ManAcc' 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.

localUser@localMachine ~/desktop/manacc (master)
$ git-ls-remote ssh://git@mydomain.ru/ManAcc
fatal: '/ManAcc' 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.

localUser@localMachine ~/desktop/manacc (master)
$ git-ls-remote ssh://git@mydomain.ru/ManAcc.git
fatal: '/ManAcc.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.

localUser@localMachine ~/desktop/manacc (master)
$ git-ls-remote ssh://git@mydomain.ru/home/git/ManAcc.git
fatal: '/home/git/ManAcc.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.
...
Рейтинг: 0 / 0
07.04.2014, 22:36
    #38607736
hyp1k
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Удаленный репозиторий Git does not appear to be a git repository
Оказалось сначала нужно было сделать коммит в локальном репозитории... Сработала последовательность:

$ cd C:\\
$ mkdir repo
$ cd repo
$ git init
$ git remote add file://C:/cygwin64/home/git/ManAcc
$ git clone file://C:/cywin64/home/git/ManAcc
fatal: 'C:/cywin64/home/git/ManAcc' does not appear to be a git repository
fatal: Could not read from remote repository.
$ git clone file://C:/cywin64/home/git/ManAcc.git
fatal: 'C:/cywin64/home/git/ManAcc.git' does not appear to be a git repository
fatal: Could not read from remote repository.
$ git init
Reinitialized existing Git repository in c:/repo/.git/
$ echo "Null version">"Readme.txt"
$ git add .
$ git commit -m "Null version commit"
$ git config --global user.email
$ git config --global user.name
$ git commit -m "Null version commit"
[master (root-commit) 5b72311] Null version commit
$ git remote add ManAcc file://C:\\cygwin64\\home\\git\\ManAcc
$ git push ManAcc

Nfo refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
atal: The remote end hung up unexpectedly
error: failed to push some refs to 'file://C:\cygwin64\home\git\ManAcc'

$ git branch
* master

$ git push ManAcc master
...
Рейтинг: 0 / 0
08.04.2014, 07:38
    #38607866
hyp1k
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Удаленный репозиторий Git does not appear to be a git repository
Плюс если используется CYGWIN sshd путь нужно писать
не так
$ git-ls-remote ssh://git@mydomain.ru/home/git/ManAcc.git
а так
$ git-ls-remote ssh://git@192.168.0.51:c:/cygwin64/home/git/ManAcc.git
...
Рейтинг: 0 / 0
Форумы / Управление процессом разработки ИС [игнор отключен] [закрыт для гостей] / Удаленный репозиторий Git does not appear to be a git repository / 3 сообщений из 3, страница 1 из 1
Целевая тема:
Создать новую тему:
Автор:
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]