Copy the current Git branch name to your clipboard.
How it works
Status Bar
After installing this extension you will find a new icon in the status bar. As soon as you click on it, the current branch name will be copied to your clipboard so that you can paste it somewhere else in your workflow.
Command palette
In addition, it's also possible to run the copy command via VS Code command palette. The command is called Copy current branch name.
If the name of the branch was successfully copied to the clipboard, a message text appears in the status bar for a few seconds.
Multiple Repositories Support
This extension also supports multiple repositories. It copies the branch name of the repository in which the currently opened and active file is located. This ensures that you always get the correct branch name depending on the repository of the active file.