Does git clean support moving to Recycle Bin?
问题 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? 回答1: Put recycle.exe into your %PATH% Run git config --global alias.recycle !git_recycle.sh Put git_recycle.sh in your %PATH% : #!/bin/bash cd ${GIT_PREFIX:-.} git