GitBridge - GitHub Repository Synchronization Tool¶
Overview¶
GitBridge is a powerful Python tool designed to synchronize GitHub repositories to local folders when direct git access is blocked. It provides two synchronization methods - GitHub API and browser automation - ensuring you can always access your code, even in restricted network environments.
Key Features¶
-
GitHub API Sync
Fast and efficient synchronization using GitHub's REST API with incremental updates -
Browser Automation
Playwright-based fallback method that works when API access is restricted -
Corporate Ready
Built-in support for proxies, PAC scripts, and SSL certificates -
Incremental Updates
Only downloads changed files after initial sync, saving bandwidth and time -
Flexible Configuration
YAML-based configuration with environment variable support -
Intuitive CLI
Easy-to-use command-line interface with progress tracking
Quick Example¶
Why GitBridge?¶
The Problem¶
Many corporate and institutional networks block direct git access (SSH and HTTPS) for security reasons, making it impossible to use standard git commands like git clone
or git pull
. However, browser access to GitHub often remains available.
The Solution¶
GitBridge provides two robust methods to synchronize repositories:
- API Method: Uses GitHub's REST API over HTTPS (same as browser traffic)
- Browser Method: Automates a real browser to download files when API is blocked
Both methods support:
- Incremental updates (only changed files)
- Branch and tag selection
- Progress tracking
- Corporate proxy support
- SSL certificate handling
Installation¶
Bash | |
---|---|
Documentation Structure¶
-
Getting Started
Installation, quick start guide, and your first sync -
User Guide
Detailed guides for all features and use cases -
CLI Reference
Complete command-line interface documentation -
:material-architecture: Architecture
Technical details about how GitBridge works -
API Reference
Python API documentation for developers -
Troubleshooting
Solutions to common problems and issues
System Requirements¶
- Python: 3.10 or higher (3.11+ recommended)
- Operating System: Windows, macOS, or Linux
- For Browser Mode: Chrome/Chromium/Firefox/Edge browser
- Network: HTTPS access to GitHub (browser access)
Support¶
License¶
GitBridge is open source software licensed under the MIT License.
Ready to get started?
Check out our Quick Start Guide to sync your first repository in under 5 minutes!