Keep all your git forks up to date with the remote main branch.
Project description
If you manage more than a couple git forks, keeping them up to date with the remote main branch can be a pain. Forks Sync lets you avoid all the fuss by concurrently cloning each of your projects locally, adding the remote upstream, fetching upstream changes, rebasing them, and force pushing to your origin repo main branch - keeping all your forks up to date with the original repo.
By default, Forks Sync will save all your forks to ~/forks-sync
where you can also find logs for this tool.
Note: Before proceeding, know that this tool will forcefully update the main branch of your fork to match the upstream main branch.
Install
# Install tool
pip3 install forks-sync
# Install locally
make install
# Get Makefile help
make help
Usage
# Setup your ssh agent to ensure the script runs continually
ssh-add
# Pass your GitHub API key/token here:
GITHUB_TOKEN=123... forks-sync --branch my_main_branch
# Optional params:
# FORKS_SYNC_LOCATION="~/my-folder"
Development
# Lint the project
make lint
# Run tests
make test
# Run test coverage
make coverage
# Run the tool locally
venv/bin/python forks/sync.py --help
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for forks_sync-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5e8bf6d6e61c923fa8cc5caffe83399a82d7c395ce6938edbd4e6148721a245 |
|
MD5 | 0e2fea975b81faa45bc3274ec8206af0 |
|
BLAKE2b-256 | 5a7b9b68ea6821f5ea335be8c9c28f031b6fc104e026962c3f9943ad53702b94 |