I'm not really experienced with Git and I had a problem exactly as in this question. Note that all of the four answers mention git reset --hard
which causes loss of uncommitted/unstashed changes in the working copy and only one of the answers actually mentions the risk of data loss and only does so somewhere closer to the bottom.
Since I'm not really experienced with Git I'd say that it's not immediately obvious that the command sequences mentioned in the answers can actually cause data loss. Maybe it's obvious for experienced users - I don't know. I feel like every answer advising on such command sequences deserves a clear warning in the beginning (unless the question was something like "how do I have all the data on my disk deleted?" - then of course it's obvious that any command sequence provided as an answer can cause a data loss).
So I'm pretty sure those answers Need Improvement™. What should I do? Should I edit them and include a warning? Should I do anything else?