4 ms·
"It is really hard to lose stuff" It is really hard to lose stuff that you have ever committed. It is really hard to lose stuff as long as you commit early and
by MBlume 4y ago
"It is really hard to lose stuff"
It is really hard to lose stuff that you have ever committed. It is really hard to lose stuff as long as you commit early and often. Uncommitted work is pretty easy to lose with 'git reset'.
- perlgeek 4y ago... or with `git checkout` or with `rm` or `git clean` (for files not yet under version control).
- tsimionescu 4y ago... or git merge / git pull (but not git rebase) ...
- TheChaplain 4y agoDepends. I use an IDE from Jetbrains, their "Local History" feature makes it fairly difficult to lose anything, even between changes on uncommitted files.
- stu2b50 4y agoI don’t think that counts as a “depends” if it involves the use of another tool.
- atom_arranger 4y agoThis has saved me many times. Memory is cheap these days, this should probably be a more common editor feature, on by default.