Escape filename for shell
Support git rename and copy