I would feel much more comfortable using git clean if I knew I could undo the deletion in case something goes wrong.
Does it support Recycle Bin in any way, shape or form? If no, are there any workarounds that anyone knows of, such as an external tool using git clean -n
to print out the files, and then moving them to Recycle Bin?
No, unfortunately!! git doesn't have this privilege. Whatever gone is gone!!
git clean -fdxn
Will do a dry run, and show you what files would be deleted if you ran
And one more thing, that if you have added files and somehow deleted those files. In this case, you can restore these files by using below command:
'git fsck --lost-found'
It's worth a try, but don't get your hopes up too much.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With