osx - Undo a git clean command? -
i used "git clean" command , managed delete documents, music, , other directories. there way undo , somehow files back? did via terminal on mac. time machine isn't setup either.
i'm afraid files gone. git clean
not reversible since files not tracked git.
from comments looks had home folder git repo, nothing tracked.
running git clean -f
removed any file inside home folder (included 1 in subdirectories), leaving empty subdirectories (the -d
option required removing them too).
i'm sorry inform you wiped out whole home directory. next time run git clean
use -n
options perform dry run , check what's going happen before it's late.
Comments
Post a Comment