开发者

Git-ing a branch from GitHub

开发者 https://www.devze.com 2022-12-16 05:30 出处:网络
I want to clone this edge branch of开发者_C百科 a github repo. The following command is identically listed in the readme for both master and edge

I want to clone this edge branch of开发者_C百科 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号