Clone a specific git branch through Xcode

試著忘記壹切 提交于 2021-02-10 14:18:06

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/54906714/clone-a-specific-git-branch-through-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!