"Branch" as a verb in version control comes from the tree metaphor: branches diverge from a trunk; adopted by Git in 2005 with the refactor to cheap pointer-based branches.
The word comes from the botanical sense: branca in Late Latin, "paw" — extended to the limb of a tree. Version control adopted it as a metaphor: the "trunk" is the main line; "branches" diverge from it. CVS and Subversion used "branch" for directory copies, which were expensive. Git in 2005 redefined the concept: a branch is a pointer to a commit, costing one file. The refactor made branching so cheap that the entire workflow of software development shifted.
A branch in Git is simply a lightweight movable pointer to one of these commits. The default branch name in Git is master or main.
— Pro Git, Chapter 3, 2014