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 default 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 new changes, rebasing your local default branch against the remote default branch, and force pushing
to your origin repo's default 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 default branch of your fork to match the upstream default 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
# 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/sync.py
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.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99d167d27396b8723257b7945d29cefd72ceaccffb823b025909b070ea8de51b |
|
MD5 | 5c56c6e58894d07fa1f64917cbd00bfe |
|
BLAKE2b-256 | 77c3243248b6a2d78af9f58574b117f5b86f107e8c2fa555ee9da5eddb2368cd |