Skip to main content

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

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Forks Sync

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

Build Status Coverage Status PyPi Licence

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


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-2.2.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

forks_sync-2.2.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file forks-sync-2.2.0.tar.gz.

File metadata

  • Download URL: forks-sync-2.2.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for forks-sync-2.2.0.tar.gz
Algorithm Hash digest
SHA256 16bd19ed6576be1fb1121adf25ff36fe2a60bdfcfb3718a508376cd1c888f17b
MD5 1d3da03f8b3d60c81dff4e5a93c82bf3
BLAKE2b-256 a9d1704561d0a0de325e01ced218b3e2cba4e83f5fdb2eb5f511259de8684b68

See more details on using hashes here.

File details

Details for the file forks_sync-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: forks_sync-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for forks_sync-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99d167d27396b8723257b7945d29cefd72ceaccffb823b025909b070ea8de51b
MD5 5c56c6e58894d07fa1f64917cbd00bfe
BLAKE2b-256 77c3243248b6a2d78af9f58574b117f5b86f107e8c2fa555ee9da5eddb2368cd

See more details on using hashes here.

Supported by

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