0%

How to checkout a remote branch

Fetch & Switch

1
2
3
4
git fetch origin
# get branches
git branch -v -a
git switch branch-name

References

  • https://stackoverflow.com/questions/1783405/how-do-i-check-out-a-remote-git-branch