git-novice icon indicating copy to clipboard operation
git-novice copied to clipboard

Add note about how rm from command line is irrecoverable

Open maneesha opened this issue 2 years ago • 1 comments

How could the content be improved?

In the section about removing the .git file if we accidentally did a git init, there is a note to use with caution. In emphasizing that caution, consider adding a line about how the rm command is irrecoverable -- items do not end up in your trash/recycle bin but are gone forever.

Which part of the content does your suggestion apply to?

https://swcarpentry.github.io/git-novice/03-create.html#correcting-git-init-mistakes

maneesha avatar Aug 17 '23 12:08 maneesha

I agree with this suggestion. The information could be beneficial to students who haven't spent much time using shell commands yet and, hopefully, with little additional overhead for maintainers and doesn't bloat the content too much (this doesn't introduce a new idea).

Perhaps taking

Running this command in the wrong directory will remove the entire Git history of a project you might want to keep.

And afterwards inserting

This change cannot be undone.

is sufficient? Alternatively,

This cannot be reversed.

a-smith-github avatar Nov 13 '23 10:11 a-smith-github

See #992.

martinosorb avatar Jul 02 '24 15:07 martinosorb