Pull remote branches and create local branches

Pull remote branches and create local branches

Use the following command:

git checkout -b 本地分支名A origin/远程分支名A

Using this method will create a new branch A locally and automatically switch to the local branch A.

The local branch established by this method will establish a mapping relationship with the remote branch.

Guess you like

Origin blog.csdn.net/chendongpu/article/details/114576509