Skip to main content

Keep all your forks up to date with the remote master branch.

Project description

Forks

Keep all your forks up to date with the remote master branch.

Build Status MIT Licence

If you manage more than a couple git forks, keeping them up to date with the remote master can be a pain. Sure, you can merge them in on GitHub but that creates a merge commit which nobody wants, then if you choose to merge any of your changes into the remote repo, they get your lovely merge commits when all you wanted was to stay up to date. Forks lets you avoid all that. Forks will clone your projects locally, add the remote upstream, fetch upstream changes, pull them in, and force push them to your origin repo. Forks will also update all your repos concurrently.

Install

pip3 install forks-sync

Usage

It's recommended to use Forks away from your development repos so as to not get merge conflicts. Cloning or updating forks will timeout after 120 seconds per fork.

# Setup your ssh agent to ensure the script runs continually
ssh-add

# Pass your GitHub API key/token here:
API_KEY=123... forks

Development

Install project with dev depencencies:

pip3 install -e ."[dev]"

Lint the project:

pylint forks/*.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

forks-sync-1.0.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

forks_sync-1.0.0-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page