What exactly do we mean by “branch”?

You are correct. We can further split your item 1 by separating “local” and “remote” branch labels: local branches (local labels) are names that start (internally—many front-end command hide this) with refs/heads/, while “remote branches”—which are also called “remote-tracking branches”—start with refs/remotes/ and then have one more path component naming the specific remote before the … Read more

How do you create a remote Git branch?

First, you create your branch locally: git checkout -b <branch-name> # Create a new branch and check it out The remote branch is automatically created when you push it to the remote server. So when you feel ready for it, you can do: git push <remote-name> <branch-name> Where <remote-name> is typically origin, the name which … Read more