N
N
Nidere2018-08-11 14:29:26
git
Nidere, 2018-08-11 14:29:26

How to set up a git server?

Good afternoon.
I'm trying to set up git for remote access.
Created an empty local repository:

[email protected] MINGW64 /d/git
$ git init --bare test.git
Initialized empty Git repository in D:/git/test.git/

Trying to incline it over ssh:
[email protected] MINGW64 ~/Documents/git
$ git clone ssh://[email protected]/git/test.git
Cloning into 'test'...
[email protected]'s password:
fatal: '/git/test.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.

What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SagePtr, 2018-08-11
@SagePtr

You need to create an empty repository on the server, not on the client.
And from the client already push there what you need

R
res2001, 2018-08-11
@res2001

You need to set up an ssh server so that git can connect to the repository via ssh.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question