Fetching from a remote will load all branches that exist on that remote:
git fetch <remote>
They will all be added as remote branches (basically <remote>/<branchname>
) and won’t exist as local branches until you create them directly. This also helps to not clutter the git branch
output, although you can still list all remote branches using git branch -r
.