Skip to main content
Diversion Documentation home page
Search...
⌘K
Ask AI
Support
Login
Login
Search...
Navigation
Commit & Branch Commands
branch-name
Documentation
API Reference
Blog
Community
Get Started
Introduction
Quickstart
Basic Workflows
Import from Git
Import from Git LFS
Choosing Your Plan
FAQs
Collaborate
Reviews
Conflicts
Permission Modes
Access Levels
Granular Permissions
Organization management
Work with Unreal Engine
Unreal Engine Plugin
UE Plugin - Solving Merge Conflicts With Diversion
Set up Horde with Diversion (Windows, UE5 Source)
Work with Unity
Unity Plugin
Unity Best Practices with Diversion
Integrations
Plugins
Reference
Core Concepts
Asset Preview
CI/CD
Webhooks
Pause/Resume sync
The .dvignore file
Selective Sync
CLI Reference
Overview
Repository Commands
Workspace Commands
Commit & Branch Commands
commit
branch
branch-name
log
show
diff
merge
merge-preview
revert
revert-to-commit
cherry-pick
reset
restore
clean
tag
shelf
Collaboration Commands
File Commands
Advanced Commands
Utility Commands
Commit & Branch Commands
branch-name
Show the current branch name
The
branch-name
command prints the name of the currently checked-out branch.
Copy
Ask AI
dv
branch-name
This is useful for scripting and CI/CD pipelines where you need to retrieve the current branch name programmatically.
branch
log
⌘I