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

Feature Request: Add confirm message when executed prune

From
MMMiguel de Dios Matias <tres.14159@gmail.com>
Date
Dec 12, 2023, 15:18 UTC
Message-ID
<CAFXSV2rXGmEJB08V8ZgPqBprQOfCRmxmbyATWLjSdR+90cJ=7g@mail.gmail.com>
Hi.

I accidentallly did a git push --prune --all in a git from the company where I am working (and hope I will be working...well sorry for the joke), because it is simple I mistook git pull with git push and I deleted all branches of my jobmates.

I thing it might be a good idea to add by default a confirmation message (can disabled by conf).

Or add a parameter such as rm --interactive for to avoid or minimice (depends of coffe level) these kind mistakes.

Regards.
Message 1 of 1 in “Feature Request: Add confirm message when executed prune”
  1. Miguel de Dios MatiasDec 12, 2023

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.