Your coworker created a new feature and asked you to review it. How to look for a branch that someone else created and pushed to the remote repository using Git? It's as simple as running the command:
git fetch origin
(Assuming that the remote repository is called "origin")
Then, you can checkout the branch the the other person was working on with:
git checkout new-feature
(Assuming the name of the new branch é “new-feature” - it's going to show up once you run the first command).
If you need to list all the branches that were pulled from the remote repository, you can use