git-version-sync
A CLI tool to synchronize semantic versions between Git tags and project configuration files.
Links: Repository · PyPI · npm · Issues
Quick Start
# Install (choose one)
pip install git-version-sync # Python/PyPI
npm install -g git-version-sync # Node.js/npm
# Use it
cd your-project
git-version-sync bump # Interactive bump
git-version-sync bump -p -r # Bump + push + release
Features
- Check version status and consistency
- Sync version discrepancies between config and Git tags
- Bump versions (major, minor, patch, auto) with semantic versioning
- Push to remote with optional GitHub releases
- Undo version bumps with automatic rollback on error
- Auto-detect multiple config files (pyproject.toml, package.json, Cargo.toml, docker-compose.yaml, and more)
- Auto-generate changelog from conventional commits
- Multi-config support - bump multiple files atomically
- Protected branches aware with automatic rollback
- Dry-run mode to preview before executing
Documentation
| Topic | Link |
|---|---|
| Installation | PyPI, npm, from source |
| Configuration | Supported files, auto-detection |
| Usage | Commands reference |
| Examples | Single-config, multi-config, GitHub releases |
| Troubleshooting | Common issues and solutions |
Common Commands
# Check version status
git-version-sync check
# Bump and preview
git-version-sync bump --dry-run
# Bump + push to remote
git-version-sync bump minor -p
# Bump + push + create GitHub release
git-version-sync bump minor -p -r "New features"
# Undo last bump
git-version-sync undo
License
MIT - See LICENSE file for details
Author
Metadata
Release files for git-version-sync 1.16.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| git_version_sync-1.16.1.tar.gz | 21.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| git_version_sync-1.16.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.4 kB
Release files / git_version_sync-1.16.1.tar.gz
| Download URL | git_version_sync-1.16.1.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a27b887307e79fdf3b166dddce284e2ce4d60de0d97763b64202ab1e14c56a9
|
|
BLAKE2b-256 checksum How to use checksums |
376fec044eb870c9284682726917115653bdcfb2bf34c7ae19b23d9891e2b537
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.
Transparency logRelease files / git_version_sync-1.16.1-py3-none-any.whl
| Download URL | git_version_sync-1.16.1-py3-none-any.whl |
|---|---|
| Size | 34.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a313768f4cd701203c858e5c032070c661cbf3358c8f58868d5e1141d8548674
|
|
BLAKE2b-256 checksum How to use checksums |
90b0b72ff6d624dd7e563245ec542ecca2859d343154266ae090dc5d2994d2a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.
Transparency log