Alberto López
Alberto López

Reputation: 35

Meaning of '+' symbol at the beginning of branch name in `git branch` output

I'm using git-subrepo. I've created a git subrepo branch and when I run git branch it outputs something like this:

$ git branch
* master
+ subrepo/CurriculumVitae

What's the meaning of that + symbol? I've researched it unsuccessfully.

Upvotes: 0

Views: 205

Answers (1)

j6t
j6t

Reputation: 13582

The + symbol in front of a branch name in the output of git branch means that this branch is checked out in its own worktree. Use

git worktree list

to see where the worktree is located.

From the documentation:

Any branches checked out in linked worktrees will be highlighted in cyan and marked with a plus sign.

Upvotes: 5

Related Questions