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

Local Folder was overwritten by old repository due to reset command

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

It is not everyday you find all your work gone and there's no way of restoring the work locally.

I am quite dumbfounded as to what has just happened as I was working with git to try and push changes to GitHub. In the process I was having some difficulties while learning and was trying out a few things including reset command. The problem is that when working in the Linux terminal you are unaware of the changes made to folders and files.

With this reset command there were no warnings of any overwrites and the deleted files are not even in my Linux Rubbish bin.

How is this possible - this bypasses all the most fundamental rules of a computer OS!

Surely there are ways to avoid this especially as default behaviour. I can assume with flags you might be able but as default there needs flashing lights for noobs.

BR
Colin.
Message 1 of 1 in “Local Folder was overwritten by old repository due to reset command”
  1. Gerriko ioJul 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.