安装特定的Git分支

时间:2012-03-20 06:30:41

标签: iphone git sdk github branch

我是git的新手。我想使用这段代码:

https://github.com/TouchCode/TouchJSON/tree/feature/ARC

但是,当我在我的本地机器上使用git安装它时

$ git submodule add git://github.com/TouchCode/TouchJSON.git

我只能看到主分支

$ git branch *主人

如何使用功能/ ARC分支?

2 个答案:

答案 0 :(得分:3)

完全应该是这样:

git clone https://github.com/TouchCode/TouchJSON.git
cd TouchJSON
git checkout feature/ARC

或者

git clone https://github.com/TouchCode/TouchJSON.gib -b feature/ARC

答案 1 :(得分:2)

git checkout feature/ARC

干杯!

相关问题