Somebody pushed a branch called test with git push origin test to a shared repository. I can see the branch with git branch -r.
test
git push origin test
git branch -r
Fetch from the remote and checkout the branch.
git fetch && git checkout
E.g.:
git fetch origin && git checkout feature/XYZ-1234-Add-alerts