search

Home  >  Q&A  >  body text

git - How does the sourcetree client clone a remote specified branch?

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

伊谢尔伦伊谢尔伦2795 days ago591

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-05-02 09:33:31

    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

    reply
    0
  • 怪我咯

    怪我咯2017-05-02 09:33:31

    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.

    reply
    0
  • Cancelreply