git pull remote branch steps

1. Open the file you want to put in the project, right click to open git2.

2. Use the git init command, if you do not enter this, you may get an error,

3. Use the command: git remote add origin + remote main address

4. Use the named git fetch origin dev (dev is the branch name of the remote warehouse) to pull the remote branch

i

5. Create a branch dev locally and switch to that branch

git checkout -b dev (local branch name) origin/dev (remote branch name)

It's pulled down in this way, it's also a reference

 

1. Open the file you want to put in the project, right click to open git2.

2. Use the git init command, if you do not enter this, you may get an error,

3. Use the command: git remote add origin + remote main address

4. Use the named git fetch origin dev (dev is the branch name of the remote warehouse) to pull the remote branch

i

5. Create a branch dev locally and switch to that branch

git checkout -b dev (local branch name) origin/dev (remote branch name)

It's pulled down in this way, it's also a reference

 

Guess you like

Origin blog.csdn.net/WA_MC/article/details/114604621