A Visual Studio Code extension that makes it easy to copy your current Git branch name.
Features
Status Bar Click: Click the branch name in the status bar to copy it.
Source Control Toolbar Button: A copy icon appears in the Source Control view for quick access.
Command Palette: Run Copy Git Branch Name from the Command Palette.
Keyboard Shortcut: Press Ctrl+Alt+B to copy instantly.
How to Copy the Branch Name
When you open a folder that is a Git repository, the Source Control view shows your current branch name inside the commit message box.
Here, development is the current branch name.
Ways to Copy:
Use the toolbar copy icon in Source Control
At the top-right of the Source Control panel, click the copy icon (added by this extension) to copy the branch name.
Command Palette
Press Ctrl+Shift+P → type Copy Git Branch Name → hit Enter.
Keyboard Shortcut
Press Ctrl+Alt+B to copy instantly.
Settings
copyBranchName.showStatusBar: Show or hide the status bar item (default: true).