Make a local Git repository from a wizard based on Zend Repo, like Origin

I would like to make a clone of the lead branch on the test server, where we have the main branch and the test site. This repo is a Zend PHP Framework Application. In the configuration 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 making my first git clone using SSH. 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 repository of the Zend framework, but the master branch. How can I do this using SSH? What will the repo name be?

+2
git git-clone ssh zend-framework
source share
1 answer

URL should be:

 me@domain.com :~/public_html/domain.com/ZendSkeletonApplication 

(assuming you are using ssh me@domain.com , and that git is a known command in this ssh session)

This will clone everything, but check the master branch.

+1
source share

All Articles