How to checkout a remote git branch

Aram Koukia
Koukia
Published in
2 min readFeb 17, 2020

--

Image from unity3d.college

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

--

--

Software Engineer, Engineering Leader and Manager @ AWS. Living my dream life. http://koukia.ca/