Error occurred when sourcetree switches from all branches to current branch

If the branch does not have a remote branch, an error will be reported when switching from all branches to current branch: error exceeded
the solution is to push the current branch to the far end, and then switch to avoid error.

Read More: