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 hashes)

Uploaded Source

Built Distribution

git_sync_upstream-1.0.5-py3-none-any.whl (4.3 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