-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
It would be good to allow some kind of local branch protection, e.g I want prevent the main branch is modified in any way in my local clone through commiting or change ref and so on.
Motivation
Once in a while I accidentally mess up my local clone because:
- Create a small enhancement
- Commit the change
- Because I not cautious enough I'm still on
mainbranch (and now I need to reset) - Even worse I might push the change (and now have updated my refs in the config)
To prevent his it would be cool to have some kind of local "branch protection" that:
- Gives an error or even better ask me to create a branch first if I try to commit to such protected branch
- As an alternative maybe disable all actions like it is done during rebase when there are conflicts
Alternatives considered
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request