For example, if the remote warehouse has a certain branch v2, how can I clone v2 locally?
小伙看你根骨奇佳,潜力无限,来学PHP伐。
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:
New warehouse.
Clone from URL.
Fill in the relevant information.
Command line operation:
git clone [URL]
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.
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:
New warehouse.
Clone from URL.
Fill in the relevant information.
Command line operation:
git clone [URL]
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.