Skip to content

What is the main branch?

The main branch is the usual default branch. Other branches merge into it, and hosts put it online. Main is only a name, and older repositories may call it master.

An example

You try a redesign on a branch. Main keeps the live version until you merge the redesign in.

Where you’ll meet it