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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -