Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note about how rm from command line is irrecoverable #965

Closed
maneesha opened this issue Aug 17, 2023 · 2 comments · Fixed by #992
Closed

Add note about how rm from command line is irrecoverable #965

maneesha opened this issue Aug 17, 2023 · 2 comments · Fixed by #992

Comments

@maneesha
Copy link
Contributor

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

@a-smith-github
Copy link

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.

@martinosorb
Copy link
Contributor

See #992.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants