Skip to main content
The branch-name command prints the name of the currently checked-out branch.
dv branch-name
This is useful for scripting and CI/CD pipelines where you need to retrieve the current branch name programmatically.