How to clone svn repo on a specific port

I am using msysgit for windows

on the old repo I had no problems with this team

git svn clone -s --username=XXX https://URL 

but the repo has moved, and now the url looks like this: svn: // url: port how can I set this port number? using

 git svn clone svn://URL:port 

result with the error "mkdir ... not the directory", and without a port it cannot find the repository

+4
source share
3 answers

I had the same problem. I solved this by simply removing the port number from the svn url. This worked because I had an entry in my ssh configuration for this url that already matched it to a specific port. If you don't have one, the entry in your ssh configuration will look something like this:

 Host my.svnrepo.com User your.name Port 321 
+3
source

If the server does not accept an ssh connection, you might be better off trying:

 git svn clone "svn://my.svnrepo.com:port" mydir 

Then the repo is saved in mydir, avoiding the mkdir error.

+1
source

Have you tried -p #### or -e "p ####" ? These would be my 2 assumptions.

0
source

Source: https://habr.com/ru/post/1301951/


All Articles