|
Удаленный репозиторий Git does not appear to be a git repository
|
|||
---|---|---|---|
#18+
Выполняю команды: подключиося по 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. ... |
|||
:
Нравится:
Не нравится:
|
|||
07.04.2014, 17:48 |
|
Удаленный репозиторий Git does not appear to be a git repository
|
|||
---|---|---|---|
#18+
Оказалось сначала нужно было сделать коммит в локальном репозитории... Сработала последовательность: $ 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 ... |
|||
:
Нравится:
Не нравится:
|
|||
07.04.2014, 22:36 |
|
Удаленный репозиторий Git does not appear to be a git repository
|
|||
---|---|---|---|
#18+
Плюс если используется 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 ... |
|||
:
Нравится:
Не нравится:
|
|||
08.04.2014, 07:38 |
|
|
start [/forum/topic.php?desktop=1&fid=37&tid=1555372]: |
0ms |
get settings: |
10ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
46ms |
get topic data: |
14ms |
get forum data: |
3ms |
get page messages: |
32ms |
get tp. blocked users: |
2ms |
others: | 273ms |
total: | 399ms |
0 / 0 |