git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Proposalö git push -F

From
XXonqNopp <xonqnoppp@gmail.com>
Date
Mar 2, 2021, 12:35 UTC
Message-ID
<CAJU-ojOhSpGraS=Cwy=kMNxNgN=T=o7Eq-BxcAfSLHMzmtAm9Q@mail.gmail.com>
Hi there,

Thanks for everything you do, git is really an awesome tool and I enjoy using it!

I have discovered some months ago that it is more safe to force a push with git push --force-with-lease

But since then I keep wondering: why is this not the default? Maybe we should have --force (which would be with lease) and --force-without-lease? That would be more logical for unaware users... However, I would completely understand your reticence to change this. I just want to propose to change the shortcuts:

* "git push --force" shortcut would become "git push -F"
* "git push --force-with-lease" would use the shortcut "git push -f"

This is just an idea of mine, I wanted to share it with you. Feel free to use it or not...

Cheers :-) XonqNopp

Next: Junio C Hamano
Message 1 of 4 in “Proposalö git push -F”
  1. XonqNoppMar 2, 2021
  2. Junio C HamanoMar 3, 2021
  3. Johannes SchindelinMar 4, 2021
  4. Xavier MorelAug 24, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.