将指定目录或文件检出到指定目录:[1]
git checkout-index -a -f --prefix=/destination/path/
也可以在使用 checkout 命令时指定 work tree 来达到此目的。[2]