通过Xcode克隆特定的git分支 [英] Clone a specific git branch through Xcode

查看:153
本文介绍了通过Xcode克隆特定的git分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要从Apple Xcode克隆特定的git分支时遇到困难吗?

在Xcode中->源代码控制->克隆并插入我的HTTP克隆URL,我只能克隆master分支,但是找不到从Xcode克隆另一个开发人员分支的解决方案.

通过以下使用终端的命令,我可以克隆特定的git分支.

git clone -b my_dev_branch_name

I am facing difficulties to clone a specific git branch from Apple Xcode?

In Xcode -> Source Control -> Clone and insert my HTTP clone url and I can able clone only master branch but I did't find a solution to clone another developer branches from Xcode.

Through below command using terminal I can able to clone specific git branch.

git clone -b my_dev_branch_name https://gitlab.com/Username/projectname_ios.git

But I don't know how to do this using Xcode so please let me help to achieve this using Xcode.

Appreciated your great help.

Thanks in advance.

解决方案

Ya, There is no option to select the branch when cloning project, But after clone you can change the branch. Step in XCODE

  • Go to Xcode navigator (left side space in Xcode(ref:Image)) -> select the source control tab(2nd tab)
  • Select ProjectName->Remote->Origin->Branch name

这篇关于通过Xcode克隆特定的git分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆