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
Built Distribution
File details
Details for the file git-sync-upstream-1.0.3.tar.gz
.
File metadata
- Download URL: git-sync-upstream-1.0.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bbcc2badce6f4d16cdfc3fb2a0967a98e9fc5dd1ec83bd7a08906a37b587c95 |
|
MD5 | b5bb1294f1c384c78287b2d3c9a1f791 |
|
BLAKE2b-256 | 22ef0d369b317a856f8238d5cf8b20b43f45994b7d3065b603ccd13fbd6c94d0 |
File details
Details for the file git_sync_upstream-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: git_sync_upstream-1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e09ea1ded3f8f618131482226c8366e901e4378c16b08a2e39a9e5620c69a4dc |
|
MD5 | 59247737a4072eae76ff3c9cdbbf5062 |
|
BLAKE2b-256 | dc0b7e27a92a37f4403f919ebd0eb9c727fe4f684c1a4948cbe2e7dd9538420a |