git checkout GuangDong
出现下面情况,提示错误,因为是有2个仓库都是叫GuangDong,所以不知道是要切换到自己仓库的GuangDong还是主仓库的GuangDong
hint: If you meant to check out a remote tracking branch on, e.g. 'origin',
hint: you can do so by fully qualifying the name with the --track option:
hint:
hint: git checkout --track origin/<name>
hint:
hint: If you'd like to always have checkouts of an ambiguous <name> prefer
hint: one remote, e.g. the 'origin' remote, consider setting
hint: checkout.defaultRemote=origin in your config.
fatal: 'GuangDong' matched multiple (2) remote tracking branches
解决:
git checkout --track upstream/GuangDong
这样就可以切换成功