S
S
sadieff2018-07-09 10:25:27
git
sadieff, 2018-07-09 10:25:27

How to add a bare hosted repository as a remote one?

Good day, developers!

I'm trying to start working with git on a hosting, guided by an article from habr: https://habr.com/post/127213/ . I created a repository in the .git site folder, then created an empty bare repository outside the working folder. Then I want to make Hub as a remote repository. At this stage, I have an error.

Here are the commands I ran
mkdir hub.git
cd hub.git
git --bare init
cd ..
cd public_html
git remote add hub /home/a/account.beget.tech/hub.git
git remote show hub
fatal: '/home /a/account.beget.tech/hub.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

Why does it give an error that hub.git is not a repository? CHADNT?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question