Does lazygit use --force or --force-with-lease while force pushing commit?
#4068
-
|
When my commit history and lg shows a dialog box if I want to force push the commits, which option is used while force pushing. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
-
No, it is not, at least not when used on its own. I have been trying to combat this misinformation for a long time now. When used on its own, But yes, lazygit does use |
Beta Was this translation helpful? Give feedback.
No, it is not, at least not when used on its own. I have been trying to combat this misinformation for a long time now. When used on its own,
--force-with-leaseprovides very little additional protection over--force. See the link that Luka posted above for more information.But yes, lazygit does use
--force-with-lease, and it is strongly recommended that you also turn ongit config --global push.useForceIfIncludes trueto make it actually safe.