Using a remote repository with non-standard port

前端 未结 5 1734
面向向阳花
面向向阳花 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:41

    SSH doesn't use the : syntax when specifying a port. The easiest way to do this is to edit your ~/.ssh/config file and add:

    Host git.host.de
      Port 4019
    

    Then specify just git.host.de without a port number.

提交回复
热议问题