N
N
Nidere2018-08-11 15:41:53
git
Nidere, 2018-08-11 15:41:53

How to find out the address of your git repository?

Good afternoon.
Git server is up and running, accepting ssh connections.
The repositories are located in the D:/git/ folder.
How can I access them by address?
git clone ssh://[email protected]/D/git/repo.git
git clone [email protected]:repo.git Gives an error
: does not appear to be a git repository
"server"
then prescribe a redirect?

Answer the question

In order to leave comments, you need to log in

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

Not very strong in the peculiarities of the SSH server under Windows.
But you can install the same Gitea, it is available under Windows, the paths in it can be set in the form [email protected] address:username/reponame, as on github.

R
res2001, 2018-08-11
@res2001

What git build do you have on the server? There are options and there may be nuances when setting the url.
Try the options:
ssh://[email protected]/d/git/repo.git
ssh://[email protected]:/d/git/repo.git
ssh://[email protected]:d/git/repo.git
ssh ://[email protected]/d:/git/repo.git See the
URL format for more details.
The first version of the URL works for me on a git server from msys2.
As far as I remember, the latter works on "Git for Windows".
By the way, I recently set up a git server on Windows. It was not possible to start via ssh - any operation ended with an error. I sin on a bad channel - the server is in the middle of nowhere, and even through VPN, the speed is not a fan, the transmission delay is decent. But the VPN itself worked, ssh did the same, but git refused. I had to raise a git-daemon on the server and work through the git protocol, not ssh.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question