xxxxxxxxxx
// If branch xyz exists on remote but not in your local:
// Checkout to master first
git checkout master
// Fetch latest changes
git fetch
// Switch to new branch. Since you don\'t have this locally, it will..
// ...check remote repo and create new local branch, set it up to track origin/xyz.
git switch xyz