lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Force pushing should require additional confirmation step

Open nvhai245 opened this issue 1 year ago • 2 comments

Currently when pushing to upstream, if there was a divergence the user can press Enter to perform a force push. I think force pushing in itself is quite risky and should require an additional confirmation step, in case the user press Enter out of a mistake.

Perhaps we could make a drop list that defaults to cancel and require the user to manually select, or make the user type in some word for confirmation. Any thoughts?

nvhai245 avatar Feb 02 '24 12:02 nvhai245

This would have to be optional. I force push all the time, and one confirmation step is ok, but another one would be too much of a hassle for me.

stefanhaller avatar Feb 02 '24 12:02 stefanhaller

I think pressing Enter to force push is very risk, how do I config it?

Marskey avatar Feb 28 '24 07:02 Marskey