KEMBAR78
Git: Support to configure branches which should be protected from direct commits · Issue #148783 · microsoft/vscode · GitHub
Skip to content

Git: Support to configure branches which should be protected from direct commits #148783

@joaomoreno

Description

@joaomoreno

Given we now want to avoid committing to main directly, we could have a workspace setting which would have the Git extension warn when the user is about to commit directly on the main branch.

Generalizing it, we could have a list of branches which would cause that alert. That alert could guide the user to create a new branch, possibly leveraging #148781

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalitygitGIT issueson-release-notesIssue/pull request mentioned in release noteson-testplan

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions