请原谅我的无知;我是 Git 新手,不确定在哪里更好地寻找答案,但是以下 url 中“example.com”后面的冒号(指向我的 mediatemple 服务器上的 git 存储库)的用途是什么?
git remote add repo_name ssh://serveradmin%[email protected] /cdn-cgi/l/email-protection:/home/45678/domains/git.example.com/html/example.git
这个语法实际上是错误的,但它有点像scp
-style 语法,您可以在 git URL 中使用,它将主机名与该主机上的路径分开。您指定 git URL 的选项列在git 克隆文档 http://git-scm.com/docs/git-clone#_git_urls_a_id_urls_a。在您的情况下,您可能需要以下之一:
serveradmin%[email protected] /cdn-cgi/l/email-protection:/home/45678/domains/git.example.com/html/example.git
... or:
ssh://serveradmin%[email protected] /cdn-cgi/l/email-protection/home/45678/domains/git.example.com/html/example.git
无论哪种情况,用户名都是serveradmin%example.com
,主机名是example.com
该主机上的路径是/home/45678/domains/git.example.com/html/example.git
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)