5

Does anyone know how to view the branch name? Even on manually run workflows? Can't see any obvious settings to change it.

*** EDIT ***

Here's how it looks in most repositories (with the branch name in blue):

enter image description here

And here's the exception repo with no branch name link:

enter image description here

giladrv
  • 1,024
  • 1
  • 9
  • 22

1 Answers1

-1

To display the current branch you're on, without the other branches listed, you can do the following:

git rev-parse --abbrev-ref HEAD

Reference: here

or with Git 2.22 and above:

git branch --show-current
Bernana
  • 245
  • 1
  • 12
  • 1
    that's not what I meant. I will edit the post – giladrv Oct 31 '21 at 11:46
  • Hey, I don't understand what do you mean but i will try. you just want to see your branches? or somewhere specifically? only on manually run workflows? Because on **<> code** you can see how much branches and when you click on it you can see all branches (near tags) – Bernana Oct 31 '21 at 14:37