How to checkout a remote git branch
Published in
2 min readFeb 17, 2020
Ever happened to you that someone in the team pushes a new branch to the remote git repository and they you want to checkout their branch?
If you have you should have experienced that a simple “git checkout branchname” will not work!
To do that, if you have only one remote repository, you can do the following:
git fetch
git checkout branch_name