Git default remote
Sometimes in Git repositories with substantial amount of branches and history one may get a message on git switch
like:
git switch develop1
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: 'develop1' matched multiple (2) remote tracking branches
As per that hint, this issue can be resolved by:
git config --global checkout.defaultRemote origin