Create a zip archive of files from current commit to latest commit you zipped. The latest hash you zipped will stored localy in store.pckl file
if you looking for simple bash commend look at this gist : https://gist.github.com/amrography/fab354545a11d0c2d94f7ca45a1aedd8
It required git module to be installed, pip3 install git
- Clone this repo
- Copy the
git_archivefolder to your git repo folder - Navigate to
git_archive folderand run./archiveorpython3 archive.py - Enter the full commit hash you want to start from
--flushto initalize the storage file, you will be asked to enter a commit hash again and branch name--branch=branch_namereplace branch_name with your desired branch name default is master
- The new archive created in sub directory inside git_archive folder