Skip to main content

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

Metadata

Release files for git-sync-upstream 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for git-sync-upstream 1.0.5
File Size Uploaded
git-sync-upstream-1.0.5.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for git-sync-upstream 1.0.5
File Interpreter ABI Platform
git_sync_upstream-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / git-sync-upstream-1.0.5.tar.gz

Download URL git-sync-upstream-1.0.5.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
64127eafd71c496ef76f3cc4573db49e486223095fa5189395d0d124f91cb625
BLAKE2b-256 checksum
How to use checksums
4ac2f6b94d9c9dc90845594e56fa76c90955c6501fdd7c4a44efa3d85d150352
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 CPython/3.10.5

Release files / git_sync_upstream-1.0.5-py3-none-any.whl

Download URL git_sync_upstream-1.0.5-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01250a21c4514d9541720b1b387917435d8ea77aefd077e3489231d72dd7fb38
BLAKE2b-256 checksum
How to use checksums
b9d8a274e06a005812d1a15af3e63591974773be3f0b78dc04020f91a23a79a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 CPython/3.10.5

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page