Skip to main content

Sync git upstream remote branches and tags to local clone and origin remote

Project description

git-sync-upstream is a CLI to sync git upstream remote branches and tags with the local clone and origin remote.

Installation

git-sync-upstream is distributed on PyPI. It requires Python 3.7+. To install:

$ python -m pip install git-sync-upstream

Usage

Change directory to the git project to sync. The project must have a remote named upstream and origin. The remote upstream will be used to sync _from_. Its branches and tags will be synced locally and _to_ origin.

$ cd myproject
# To sync the current branch
$ git-sync-upstream
# To sync all branches
$ git-sync-upstream --all

It is convenient to add a git alias to the command:

$ git config --global alias.sync "!git-sync-upstream"

Then:

$ cd myproject
# To sync the current branch
$ git sync
# To sync all branches
$ git sync --all

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

git-sync-upstream-1.0.5.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

git_sync_upstream-1.0.5-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file git-sync-upstream-1.0.5.tar.gz.

File metadata

  • Download URL: git-sync-upstream-1.0.5.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 CPython/3.10.5

File hashes

Hashes for git-sync-upstream-1.0.5.tar.gz
Algorithm Hash digest
SHA256 64127eafd71c496ef76f3cc4573db49e486223095fa5189395d0d124f91cb625
MD5 7694e213fd6d57d8a1f22102d14e8145
BLAKE2b-256 4ac2f6b94d9c9dc90845594e56fa76c90955c6501fdd7c4a44efa3d85d150352

See more details on using hashes here.

File details

Details for the file git_sync_upstream-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for git_sync_upstream-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 01250a21c4514d9541720b1b387917435d8ea77aefd077e3489231d72dd7fb38
MD5 a79919f498fc02c82e94f34da8cfae3d
BLAKE2b-256 b9d8a274e06a005812d1a15af3e63591974773be3f0b78dc04020f91a23a79a8

See more details on using hashes here.

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