git - How does the sourcetree client clone a remote specified branch?
伊谢尔伦
伊谢尔伦 2017-05-02 09:31:31
0
2
590

For example, if the remote warehouse has a certain branch v2, how can I clone v2 locally?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
刘奇

The purpose of git clone is to retrieve all version information of the code base. You can clone the entire code base and switch to the v2 branch.

sourceTree operation:

  1. New warehouse.

  2. Clone from URL.

  3. Fill in the relevant information.

Command line operation:

  1. git clone [URL]

  2. git checkout v2

刘奇

Operation in client?

There are all remote branches in the "Remote Origin" list, right click and "Check Out".

There are all local branches under the local branch label, and you can switch by double-clicking.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template