Skip to content

Warn when you're on the wrong branch, like MASTER

Notifications You must be signed in to change notification settings

moloko/vscode-branch-warning

 
 

Repository files navigation

Branch Warnings

Alerts you when you are working on a branch you have designated "protected" such as main or master. Can help to remember not to commit to the wrong branch.

screenshot

Extension Settings

This extension contributes the following settings:

  • branchwarnings.suppressPopup: Suppress the more intrusive warning dialog when first switching to a protected branch (only show the warning on the status bar).

  • branchwarnings.protectedBranches: An array of branch names. If it exists, warnings will be shown for these names.

By default, warnings will be given for branches titled "main" or "master". If you wish to warn when working on another branch such as "prerelease", add to your workspace or user settings:

"branchwarnings.protectedBranches": [ "main", "master", "prerelease", "releases/**" ]

About

Warn when you're on the wrong branch, like MASTER

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%