[Pull the specified branch from gitlab]

【step】:

  1. Initialize the local repository:git init
  2. Establish a connection with the remote git repository:git remote add origin 仓库地址
  3. Get the remote branch:git fetch origin 分支名称
  4. Establish a local branch and a remote branch association:git checkout -b 本地分支 仓库/远程分支
  5. Pull the specified branch code:git pull 仓库 指定分支名

[Example]:
insert image description here

Guess you like

Origin blog.csdn.net/qq_43483403/article/details/122133064