简体   繁体   English

在Ubuntu上配置Git托管

[英]Configure Git hosting on Ubuntu

Hi, i am trying to configure git, on my Ubuntu (virtual machine). 嗨,我正在尝试在Ubuntu(虚拟机)上配置git。 as instructed this tutorial 按照本教程的指示

http://www.guztech.nl/wordpress/index.php/2010/02/setting-up-a-git-server-in-ubuntu-with-gitosis-and-using-gitextensions-on-windows/ http://www.guztech.nl/wordpress/index.php/2010/02/setting-up-a-git-server-in-ubuntu-with-gitosis-and-using-gitextensions-on-windows/

When i try to clone repository on Windows Host with GitExtension i get FATAL ERROR: Network error: Connection timed out ... 当我尝试使用GitExtension在Windows主机上克隆存储库时,出现致命错误:网络错误:连接超时...

I suppose the problem is my connection string git@IP:gitosis-admin.git . 我想问题是我的连接字符串git @ IP:gitosis-admin.git。 What is the Git Port number ? 什么是Git端口号? i should forward it to my Ubuntu Virtual machine. 我应该将其转发到我的Ubuntu虚拟机。 But then what would the connection string look like ? 但是,连接字符串是什么样的? git@IP:3390:gitosis-admin.git ? git @ IP:3390:gitosis-admin.git吗?

默认情况下,如果您未指定协议,而是在服务器名称后加上冒号(然后是存储库),则Git在端口22上使用ssh。请参见http://git-scm.com/docs上的 “ GIT URLS” / git-克隆

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM