I have to remote repos in one folder, after writing git remote -v I obtain:

```
A   https://github.com/A/repo.git (fetch)
A   https://github.com/A/repo.git (push)
B   https://github.com/B/repo.git (fetch)
B   https://github.com/B/repo.git (push)

```

Currently I'm on branch master of A, but I would like to swap to master branch of B, how can I do this? Command git checkout allows me only to change branches of A, but it does not work if I want to connect with B.