根据Zend Repo作为Origin来制作一个本地Git仓库回购 [英] Make a local Git repo from master based with Zend Repo as Origin
问题描述
我想在主分支和测试站点运行的测试服务器上创建主分支的克隆。这个回购是一个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 me@domain.com:〜/ public_html / site.com / ZendSkeletonApplication / project.git
。但当然,我不想复制Zend框架回购,但是主分支。我如何使用SSH做到这一点?
$ b
这个url应该是:
pre> me@domain.com:〜/ public_html / domain.com / ZendSkeletonApplication
(假设您有 ssh me@domain.com
,并且该git是该ssh会话中的一个已知命令)
这将克隆所有内容,但是签出 master
分支。
I would like to make a clone of a master branch on the test server where we have the master branch and the test site running. This repo is a Zend PHP Framework Application. In the config file @ /home/me/public_html/domain.com/ZendSkeletonApplication/.git/config
I have now:
[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
I was considering doing my first git clone using SSH ever. I think it should be something like
git clone me@domain.com:~/public_html/site.com/ZendSkeletonApplication/project.git
. But of course I do not want to copy the Zend framework repo, but the master branch. How do I do that using SSH? What would be the repo name?
The url should be:
me@domain.com:~/public_html/domain.com/ZendSkeletonApplication
(assuming that you have ssh me@domain.com
works, and that git is a known command in that ssh session)
That will clone everything, but checkout the master
branch.
这篇关于根据Zend Repo作为Origin来制作一个本地Git仓库回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!