To maintain repository cleanliness and enforce GitFlow best practices, the system should be able to detect when a developer is working directly on protected branches.
Core Functionality:
- Detect when a
git commit is attempted on main or develop.
- Issue a clear warning to the user, explaining the problem.
- Provide a helpful suggestion, such as creating a new feature branch.
To maintain repository cleanliness and enforce GitFlow best practices, the system should be able to detect when a developer is working directly on protected branches.
Core Functionality:
git commitis attempted onmainordevelop.