I am setting up my local git project for a remote repository. The remote repository is being served on a non-standard port (4019).
But it doesn\'t work. Instead I ge
This avoids your problem rather than fixing it directly, but I'd recommend adding a ~/.ssh/config file and having something like this
Host git_host
HostName git.host.de
User root
Port 4019
then you can have
url = git_host:/var/cache/git/project.git
and you can also ssh git_host and scp git_host ... and everything will work out.