1

fatal: '/python/chr/' 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 init --bare
nano post-receive


#!/bin/sh
git --work-tree=/home/admin/web/ploshadka.net/public_html/test --git-dir=/home/admin/web/ploshadka.net/git checkout -f
chmod +x post-receive

Локалка


git init 
git add .
git remote add live ssh://[email protected]/python/chr/
git push live main

fatal: '/python/chruches/' 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.

Пытался по новой создавать, одно и тоже, создавал новых юзеров, тоже особо не помогло, одно и тоже

1
  • Забыл добавить, что ветку main создал) 29 июл 2019 в 11:03

1 ответ 1

1

Ох)) Вместо

git remote add live ssh://[email protected]/python/chr/

Использовал

git remote add live ssh://[email protected]/~/python/chr/

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.