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

Revert and reset and very damaging Git commands

From
GIGerriko io <gerriko.iot@gmail.com>
Date
Jul 11, 2022, 19:52 UTC
Message-ID
<CALF=2AMDTa48sYdrPjc_i9UyaZfvGKhR9OvknYfLywgtj8AM_g@mail.gmail.com>

As a noob I have managed to completely delete all my local folder contents just by misusing reset and revert commands. Un-be-lievable! And no matter how many times I've tried I cannot return to where I was. The git reflog is not that helpful either... and only shows resets and not revert histories.

Gosh this is not good.

Why are these commands bypassing all the fundamentals of a computer OS. Surely if a file is deleted it should end up in the computer's rubbish bin. Not deleted permanently without a trace.

If that is the intent then there needs to be warnings etc. for deletes and overwrites.

I'm just amazed that all the basics of software design are ignored for the sake of convenience and speed.

Next: brian m. carlson
Message 1 of 3 in “Revert and reset and very damaging Git commands”
  1. Gerriko ioJul 11, 2022
  2. brian m. carlsonJul 11, 2022
  3. Thomas GuyotJul 11, 2022

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.