简体   繁体   中英

Clone a specific git branch through Xcode

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

更改分支图像

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM