Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: prevent committing on main branch #346

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TT1228
Copy link
Contributor

@TT1228 TT1228 commented Dec 5, 2024

Summary

Prevent direct commit of main branch

Copy link
Contributor

@nekolab nekolab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hook you are using now is pre-commit, it basically prevents you from creating a commit on the main branch, but not controlling the push behavior.
Would you think writing a pre-push hook could be a better choice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants