The answer depends on how you define "branch".
In Git, the word "branch" can mean either a branch name like master
, or a branch within the commit graph. (See also What exactly do we mean by "branch"?)
Normally, to get a branch within the commit graph, you need at least two names. However, branches like master
are shorthand for names that begin with the literal text refs/heads/
: the branch master
is really refs/heads/master
, and if you create a branch named A
it has the full name refs/heads/A
. Your Git stores these names in its own private table of name-to-hash-ID mappings. This table also has tag names, like v2.3
, which are short for names within refs/tags/
, and what Git calls remote-tracking branches like origin/master
, which are short for refs/remotes/origin/master
.
If you have an origin
, you probably have an origin/master
to go along with your own master
. This gives you two names. Only one is a branch name, but both may—depending on how you define "branch"—result in branches!
Besides all this, you can create anonymous branches (if you choose to call them branches in the first place) using a "detached HEAD". You can then name commits by their raw hash IDs, and by merging such commits, create a merge conflict. This is a way to get a conflict with only one branch name. But are there multiple branches? Again, that's up to whoever defines "branch".