开发者

How do i clone svn repo on specific port

开发者 https://www.devze.com 2022-12-20 16:34 出处:网络
I\'m using msysgit on windows on old repo i had no problems with this command git svn clone -s --username=XXX https://URL

I'm using msysgit on windows

on old repo i had no problems with this command

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

but repo has mo开发者_开发技巧ved and now the url is like that: svn://URL:port how can i set this port number ? using

git svn clone svn://URL:port

results with 'mkdir ... not a directory' error, and without port it can't find the repository


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

Host my.svnrepo.com
     User your.name
     Port 321


If the server does not accept ssh connection you may be better of trying :

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

The repo is then saved in mydir avoiding the mkdir error.


Have you tried -p #### or -e "p ####"? Those would be my 2 guesses.

0

精彩评论

暂无评论...
验证码 换一张
取 消