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

feat: Require confirmation or restrict pushing on master/main #4373

Open
GNRSN opened this issue Mar 7, 2025 · 2 comments
Open

feat: Require confirmation or restrict pushing on master/main #4373

GNRSN opened this issue Mar 7, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@GNRSN
Copy link

GNRSN commented Mar 7, 2025

Is your feature request related to a problem? Please describe.
Similar to how it is possible to disable force pushing, I'd like to have the same "guardrails" to prevent accidentally pushing to main/master branch.

Describe the solution you'd like
Ideally some confirmation step that also provides the option to create a separate branch and pushing to it instead. Being able to disable pushing onto main from lazygit would be an acceptable alternative as well.

@GNRSN GNRSN added the enhancement New feature or request label Mar 7, 2025
@stefanhaller
Copy link
Collaborator

This was discussed before, see for example here.

@GNRSN
Copy link
Author

GNRSN commented Mar 8, 2025

Thank you, I was only searching through issues. I'm in the same situation as was described in #4054 (comment)

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

No branches or pull requests

2 participants