* Proposal to add a shortcut for --force-with-lease
@ 2016-08-20 18:20 vi0oss
0 siblings, 0 replies; only message in thread
From: vi0oss @ 2016-08-20 18:20 UTC (permalink / raw)
To: git
"--force" have currently two shortcuts: "-f" and "+", hence more ergonomic.
But I expect it's better for users to use "--force-with-lease" by
default for overriding
remote branches (e.g. cleaning up a pull request), as it rarely fails in
normal situations.
I propose adding some shortcut for "--force-with-lease".
Options for a shortcut:
* git push origin =HEAD:master
"=" is like "+", but weaker ('+' being typed as shift+'=')
* git push -l origin HEAD:master
* git fpush origin HEAD:master
Unfortunately hijacking "-f" to mean "--force-with-lease" is not an
option due to scripts.
"-F" is also bad choice because of it looks like "-f" with even less
checks (like "git checkout -B" instead of "-b").
Additionally, message when doing "git push -l" or "git push -nl" may
show the range of commits being "thrown away".
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-20 18:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-20 18:20 Proposal to add a shortcut for --force-with-lease vi0oss
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).