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 pr...
TBWritten byThomas Bourdin1 min read
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:
This tutorial retains the command and the context of its publication. Before using it on a current repository, inspect the branch, the modified files, and the exact target:
git status --short
git log --oneline --decorate -5
Create a backup branch or tag when the operation rewrites history or deletes files. In particular, git reset --hard overwrites the changes in the working directory.