From: vi0oss <vi0oss@gmail.com>
To: git@vger.kernel.org
Subject: Proposal to add a shortcut for --force-with-lease
Date: Sat, 20 Aug 2016 21:20:51 +0300 [thread overview]
Message-ID: <57B89F83.8060001@gmail.com> (raw)
"--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".
reply other threads:[~2016-08-20 18:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57B89F83.8060001@gmail.com \
--to=vi0oss@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.