What is it?
Git branch extension is a Visual Studio extension that is useful for creating a git-compliant branch name from an Azure DevOps work item name.
How does it work?
The user taps on Tools -> Fix branch name which displays a popup window where the user may type or paste the name of their Azure DevOps work item. Then when the user clicks on the Rename button the input string is modified to reflect whether the branch name is for a bug or product backlog item and is copied to the clipboard upon which it may be pasted into the new git branch window.
Configuration
To configure the utility for your needs, click on the Tools -> Options menu, then scroll down to Git Branch Extension and you'll see the following:
Bug branch prefix: The prefix that will be prepended to the branch name for bug work items which start with "Bug".
PBI branch prefix: The prefix that will be prepended to the branch name for product backlog work items which start with "Product Backlog Item".
Task branch prefix: The prefix that will be prepended to the branch name for task work items which start with "Task".
Investigation branch prefix: The prefix that will be prepended to the branch name for investigation work items which start with "Investigation".
Max description length: The maximum number of characters to keep for the description portion of the branch name. Sometimes upon initial install this may default to 0, which is not valid. If it does, be sure to set it to the desired length.
Make lowercase: True to make the branch name all lowercase characters.
Word separator: The separator to use between words. This should not be one of the following characters: /, ~, ^, :, ?, *, [, .