Git 使用cp命令copy更改的文件到另外的目录并保留目录结构 cp --parents `git status | grep -Eo "([^:]*\..*\>$)"` ~/Desktop/xxx/modify/