Blog: 2024-08-30
Jump to navigation
Jump to search
Whoops cleaned some stuff by mistake! Gone are some junks that I forgot about
editor-testing $ git clean -xdn Would remove .pytest_cache/ Would remove .yarn/ Would remove __pycache__/ Would remove constant.py Would remove headless_emacs.py Would remove poetry.lock Would remove pyproject.toml Would remove test_open_emacs_and_quit.py Would remove vim_experiment.py editor-testing $ git clean -fxd Removing .pytest_cache/ Removing .yarn/ Removing __pycache__/ Removing constant.py Removing headless_emacs.py Removing poetry.lock Removing pyproject.toml Removing test_open_emacs_and_quit.py Removing vim_experiment.py
whoops!! Again I confused "untracked" with "ignored" - I only wanted to clear the ignored files, so that I could cleanly reinstall the dependencies. Would be good to have a safe-cleanup function that would back them up or put them in ~/.trash or something... cause I lost those for sure !! Though I did have some fun looking up extundelete.
extundelete --restore-directory . /dev/nvme0n1
Didn't work. Oh well! Also it warned me about working on a mounted filesystem. Ignored that err