我想在测试服务器上克隆主分支,在该服务器上运行主分支和测试站点。此存储库是 Zend PHP 框架应用程序。在配置文件中@/home/me/public_html/domain.com/ZendSkeletonApplication/.git/config
我现在有了:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git://github.com/zendframework/ZendSkeletonApplication.git
[branch "master"]
remote = origin
merge = refs/heads/master
我正在考虑使用 SSH 进行我的第一个 git 克隆。我认为应该是这样的
git clone [email protected] /cdn-cgi/l/email-protection:~/public_html/site.com/ZendSkeletonApplication/project.git
。但我当然不想复制 Zend 框架存储库,而是复制 master 分支。我该如何使用 SSH 来做到这一点?仓库名称是什么?
网址应该是:
[email protected] /cdn-cgi/l/email-protection:~/public_html/domain.com/ZendSkeletonApplication
(假设你有ssh [email protected] /cdn-cgi/l/email-protection
有效,并且 git 是该 ssh 会话中的已知命令)
这将克隆所有内容,但请检查master
branch.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)