jesseduffield / jesseduffield/lazygit

feat: Require confirmation or restrict pushing on master/main

Open
#4,373 3 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.