This section is used to record some problems and solutions. Welcome to ask questions and discuss them.
Q & A
Q1
If I want to abandon changes on a branch like dev and fetch the remote banch of the same name?
If -B is given,
Q2
when someone build a new branch on remote repository, but I couldn’t find the new-built branch on my remote branches on my computer.
The command will fetch remote branches again if the branch has been added, removed or changed.
Q3
You are needed to fix bugs on a new emergency branch on the same remote repository when you develop on the feature branch.
But the feature branch counldn’t be pushed to the remote repository because the develop work is not finished. Now you should
save you work on the feature branch at first.
Then you could continue your previous work.