I found a Git command but it only export file names between commit ids and save in a file
git diff --name-only commitid1 commitid2 > ../result.txt
An example for result.txt:
Web/A/Recoverpw.aspx
Web/B/Root.aspx
But I want to export them as files in a folder in structure. Example:
Web
|__A
|__Recoverpw.aspx
|__B
|__Root.aspx
Exported files must be lastest, got from local respository. Please help me. Thanks.