1. First of all, we need to use git branch to look at the current branch
2. If the branch is not what you want, then switch the branch: git checkout -b branch name you want to switch to
3. Push the new development branch to the remote
git push origin name of the new branch
4. Pull the remote branch
git pull
If there is the following prompt:
>git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> feature/V5.0.0-snow
It means that the current branch is not associated with the local branch, follow the prompts to proceed to the next step:
5. Associate
git branch --set-upstream-to=origin/new branch name
6. Pull code
git pull again