Using a remote repository with non-standard port

前端 未结 5 1738
面向向阳花
面向向阳花 2020-11-27 11:22

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

5条回答
  •  孤街浪徒
    2020-11-27 11:38

    If you put something like this in your .ssh/config:

    Host githost
    HostName git.host.de
    Port 4019
    User root
    

    then you should be able to use the basic syntax:

    git push githost:/var/cache/git/project.git master
    

提交回复
热议问题