Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
extractor.sh | 2023-08-11 | 2.6 kB | |
README.md | 2023-08-11 | 545 Bytes | |
Totals: 2 Items | 3.1 kB | 0 |
Git Extractor
This is a script which tries to recover incomplete git repositories:
- Iterate through all commit-objects of a repository
- Try to restore the contents of the commit
- Commits are not sorted by date
Usage
bash extractor.sh /tmp/mygitrepo /tmp/mygitrepodump
where
- /tmp/mygitrepo
contains a .git
directory
- /tmp/mygitrepodump
is the destination directory
This can be used in combination with the Git Dumper
in case the downloaded repository is incomplete.