Git: export revisions with file structure
To perform an export, similar to how tortoiseSVN does which allows exporting files from one or several revisions, along with their directory structure (which is convenient for a production deployment), simply execute the following command, specifying the previous revision and the latest revision: git diff-tree -r --no-commit-id --name-only 6c16aaab 35168851| xargs tar -rf /var/www/delivery.tar Precautions before executing the order This tutorial retains the command and the context of its...