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

Add no-commit-to-branch (main) pre-commit hook #153

Closed
wants to merge 1 commit into from

Conversation

timmens
Copy link
Member

@timmens timmens commented Jul 20, 2024

Adds pre-commit hook that prevents committing to main.

This feature is important for template developers to avoid mistakenly committing to the main branch. However, we do not want this hook passed down to the template users.

ToDo

  • Add a section to the documentation to delete this hook when updating the template.

@hmgaudecker
Copy link
Member

Thanks! Benefit (clean history) is below cost (extra step in setup). Let's leave it as is.

@hmgaudecker hmgaudecker deleted the add-no-commit-to-main-hook branch July 21, 2024 11:01
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