JetpackDuba / Gitnuro

A FOSS Git multiplatform client for newbies and pros
https://gitnuro.com/
GNU General Public License v3.0
872 stars 44 forks source link

Force push should default to with lease by default #147

Closed JasonEleventeen closed 11 months ago

JasonEleventeen commented 1 year ago

Force push should never be default, allow optional force push if lease fails

git push --force-with-lease

This will prevent accidental overwrite of history on the origin

JetpackDuba commented 1 year ago

Hey!

I remember @DPini recommended me to do it but JGit had some weird issues, it was quite some time ago so it may be different with the newer versions.

I'll try it again, thanks for the reminder!