In the company, it is all team development, and a project is developed by multiple people, then there must be an administrator who creates a new branch, and then the developer performs the operation of switching branches for development. If we directly
查看所有分支信息
git branch -r / git branch -a
That can only see a few local branches, but not the branches of the real-time remote warehouse.
At this time we need to use this statement
# 更新远程主机origin 整理分支
git remote update origin --prune
The meaning of this statement is to update the branch of the remote warehouse to our local, which can be understood as the same as our pull code.