Skip to content

Instantly share code, notes, and snippets.

View MarcusJohnson91's full-sized avatar

Marcus Johnson MarcusJohnson91

View GitHub Profile
@MarcusJohnson91
MarcusJohnson91 / README.md
Created December 30, 2020 10:28 — forked from magnetikonline/README.md
Extract all files at every commit of a Git repository.

Extract all files at every commit of a Git repository

Bash script to iterate all commits of a given Git repository and extract all files within each commit.

Example

With a Git repository at /path/to/repository and an empty directory at /path/to/output we can run:

./export.sh /path/to/repository /path/to/output

Export 1d9048853b8073e43e43e3250300a82f93d2f431 -> /path/to/output/1d9048853b8073e43e43e3250300a82f93d2f431