We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e52e4a9 commit 1f2e6e9Copy full SHA for 1f2e6e9
.pre-commit-config.yaml
@@ -18,3 +18,10 @@ repos:
18
language: system
19
pass_filenames: false
20
always_run: true
21
+
22
+ # prevents committing directly branches named 'main' and 'master'.
23
+ - repo: https://github.com/pre-commit/pre-commit-hooks
24
+ rev: v4.4.0
25
+ hooks:
26
+ - id: no-commit-to-branch
27
+ name: Don't commit to main or master branch
0 commit comments