2014-06-17 26 views
2

我想在主分支和測試站點運行的測試服務器上創建一個主分支的克隆。這個回購是一個Zend PHP框架應用程序。在配置文件@/home/me/public_html/domain.com/ZendSkeletonApplication/.git/config我現在有:以Zend Repo爲基礎製作一個本地Git倉庫作爲產地

[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 clone [email protected]:~/public_html/site.com/ZendSkeletonApplication/project.git。但當然,我不想複製Zend框架回購,但是主分支。我如何使用SSH做到這一點?回購名稱是什麼?

+0

似乎回購沒有描述:'貓描述 未命名的存儲庫;編輯這個文件'description'來命名版本庫。' – rhand

回答

1

網址應爲:

[email protected]:~/public_html/domain.com/ZendSkeletonApplication 

(假設你有ssh [email protected]的作品,那Git是在SSH會話已知的命令)

這將克隆的一切,但檢出master分支。

+0

非常感謝!比我想象的要容易。 – rhand

相關問題