Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git-ing a branch from GitHub

Tags:

git

github

I want to clone this edge branch of a github repo.

The following command is identically listed in the readme for both master and edge

git clone --depth 1 git://github.com/bborn/communityengine.git vendor/plugins/community_engine

How do I specify to git that I want the edge branch?

like image 688
mculp Avatar asked Jan 11 '10 19:01

mculp


People also ask

How do I create a branch from another branch in GitHub?

Creating a branch using the branch dropdown On GitHub.com, navigate to the main page of the repository. Optionally, if you want to create the new branch from a branch other than the default branch of the repository, click Branches then choose another branch.


1 Answers

just add a -b for branch

git clone --depth 1 git://github.com/bborn/communityengine.git vendor/plugins/community_engine -b edge

Then you'll have a folder called vendor/, and doing 'git branch' will show you the edge branch.

like image 66
sargas Avatar answered Oct 20 '22 02:10

sargas