Skip to content

Catastrophic bug that led me to lose months of work #24422

Discussion options

You must be logged in to vote

Yes, this is a bug. Please open an issue at https://github.com/atom/github/issues/new with the same information and we’ll look into it.

Unfortunately, this has nothing to do with git. Because the changes were unstaged, git was never tracking those files and therefore wasn’t protecting them. For future reference, in order for git to protect your files or their contents, you have to:

  1. Stage the files (or their latest contents)
  2. Commit the changes

Typically, I do the above multiple times a day so that I only lose at most a couple hours of work.

Additionally, if you want to learn more about exactly how git works and protects your files, I highly recommend Git from the Bottom Up by John Wiegley.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants