loading
loading
A simple Python tool to backup every branch of every repository in your GitHub account as individual ZIP files.
About
GitHub Full-Branch ZIP Backup is a Python tool designed to back up every branch from all repositories in your GitHub account as individual ZIP files. It automatically retrieves repositories, clones each branch with depth=1 for efficiency, compresses them, and cleans up temporary files — providing a smooth, automated backup workflow.
Features
Fetch All Repositories
Automatically retrieves all public and private repositories for the authenticated GitHub user.
Branch Detection
Lists every branch in each repository to ensure full coverage of your projects.
Per-Branch Cloning
Clones each branch into a dedicated folder named repo__branch with shallow depth for faster execution.
ZIP Packaging
Compresses each cloned branch folder into a clean repo__branch.zip file for efficient storage.
Cleanup
Automatically deletes temporary clone directories after zipping to free up disk space.
Progress Feedback
Displays real-time progress updates showing current repository and branch being processed.
Error Handling
Continues operations on failure, logs issues, and provides a summary at the end.
Tech Stack
Dependencies
Git installed and available in PATH
Python Libraries: [requests, gitpython, tqdm]
Use Cases
Backup every branch from all your GitHub repositories into timestamped ZIP files.
Safely archive repositories from organizations and personal accounts with one command.