Sync your forked GitHub repository with the upstream/original repo using one command.
- Automatically adds the
upstreamremote (if not present) - Fetches updates from upstream
- Merges/rebases upstream into your fork's main branch
- Pushes changes to your GitHub fork
pip install -r requirements.txtpython gh_fork_sync.py --repo owner/repo --token YOUR_GITHUB_TOKENOptions:
--branch: Branch to sync (default: main)--method: Merge or rebase (default: merge)
MIT License