Skip to content

Creating and checking out branches

The toolbar's Branch button creates a new branch from wherever HEAD is right now, without leaving the graph — the same operation the command palette's "Create branch here" offers for an older commit, but reachable in one click for the common case of branching from HEAD. Creating a branch doesn't switch to it; picking it from the branch selector does.

Creating a branch from the toolbar and checking it out

Clicking the toolbar's Branch button opens a small popover pre-filled with where the new branch will start from — HEAD, by default. Typing a name and confirming creates it immediately, without switching to it; picking the new branch from the branch selector is the separate step that actually checks it out.

Creating a branch from the toolbar and checking it out

Captured from the running app by this scenario.

Do this

  1. Click the toolbar branch button
  2. Set the new branch name to feature/reporting
  3. Confirm the new branch creation
  4. Check out the feature/reporting branch

You should see

  • The branch feature/reporting exists
  • The branch indicator reads feature/reporting

This page is generated from apps/e2e/features/branch-create.feature, the end-to-end test that drives the feature it describes.

MIT licensed · Screenshots exported from the real app by the end-to-end suite.