{"thread":{"id":"43894","subject":"Proposal to add a shortcut for --force-with-lease","startedAt":"2016-08-20T18:21:02Z","lastAt":"2016-08-20T18:21:02Z","messageCount":1,"participants":["vi0oss"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"299794","messageId":"57B89F83.8060001@gmail.com","threadId":"43894","inReplyTo":null,"subject":"Proposal to add a shortcut for --force-with-lease","fromName":"vi0oss","fromEmail":"vi0oss@gmail.com","sentAt":"2016-08-20T18:20:51Z","receivedAt":"2016-08-20T18:21:02Z","isPatch":false,"sender":{"key":"vi0oss@gmail.com","avatar":"https://avatars.githubusercontent.com/u/173219?v=4"},"body":"\"--force\" have currently two shortcuts: \"-f\" and \"+\", hence more ergonomic.\nBut I expect it's better for users to use \"--force-with-lease\" by \ndefault for overriding\nremote branches (e.g. cleaning up a pull request), as it rarely fails in \nnormal situations.\n\nI propose adding some shortcut for \"--force-with-lease\".\n\nOptions for a shortcut:\n\n* git push origin =HEAD:master\n         \"=\" is like \"+\", but weaker ('+' being typed as shift+'=')\n* git push -l origin HEAD:master\n* git fpush origin HEAD:master\n\nUnfortunately hijacking \"-f\" to mean \"--force-with-lease\" is not an \noption due to scripts.\n\"-F\" is also bad choice because of it looks like \"-f\" with even less \nchecks (like \"git checkout -B\" instead of \"-b\").\n\nAdditionally, message when doing \"git push -l\" or \"git push -nl\" may \nshow the range of commits being \"thrown away\".\n"}]}