Skip to content

Create a zip archive of files from current commit to latest commit you zipped

License

Notifications You must be signed in to change notification settings

amrography/git-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-archive

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

How to use

  1. Clone this repo
  2. Copy the git_archive folder to your git repo folder
  3. Navigate to git_archive folder and run ./archive or python3 archive.py
  4. Enter the full commit hash you want to start from

Command line options

  • --flush to initalize the storage file, you will be asked to enter a commit hash again and branch name
  • --branch=branch_name replace branch_name with your desired branch name default is master

Notice

  • The new archive created in sub directory inside git_archive folder

About

Create a zip archive of files from current commit to latest commit you zipped

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages