mirror of
https://github.com/ObNitram/git-release.git
synced 2026-03-22 03:42:20 +01:00
1.5 KiB
1.5 KiB
git-release
Minimal tool to create and publish Git release tags following the vX.Y.Z format.
Usage
Single project (default):
- From the repository root:
./git-releaseorgit release - Creates tags in the format
vX.Y.Z
Multi-project:
- From the repository root:
./git-release <projectname>orgit release <projectname> - Creates tags in the format
<projectname>-vX.Y.Z - Useful for monorepos with multiple independent release cycles
The script creates an annotated tag and pushes it to the configured remote.
Example
$ git release
📦 Current version: v0.0.0
Select release type:
1) patch
2) minor
3) major
4) cancel
#? 2
🚀 Creating new release: v0.1.0
Confirm? (y/N): y
Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Delta compression using up to 20 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 560 bytes | 560.00 KiB/s, done.
Total 4 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To github.com:ObNitram/git-release.git
* [new tag] v0.1.0 -> v0.1.0
✅ Release v0.1.0 created and pushed successfully!
Installation
- Make the script executable:
chmod +x git-release - (Optional) Create a hard link in your PATH :
ln "$(pwd)/git-release" "$HOME/.local/bin/git-release"
Dependencies
- git
License
- See the repository
LICENSEfile.