https://github.com/timo-reymann/git-semver-tag
Simple helper to release your git tag according to the semver spec
https://github.com/timo-reymann/git-semver-tag
cli git go semver
Last synced: 8 months ago
JSON representation
Simple helper to release your git tag according to the semver spec
- Host: GitHub
- URL: https://github.com/timo-reymann/git-semver-tag
- Owner: timo-reymann
- License: other
- Created: 2019-09-19T17:59:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-09-04T17:30:06.000Z (almost 3 years ago)
- Last Synced: 2025-03-26T18:21:21.527Z (about 1 year ago)
- Topics: cli, git, go, semver
- Language: Go
- Homepage:
- Size: 84 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
git-semver-tag
===
[](https://github.com/timo-reymann/git-semver-tag/releases)
[](https://goreportcard.com/report/github.com/timo-reymann/git-semver-tag)


[](https://renovatebot.com)
[](https://sonarcloud.io/summary/new_code?id=timo-reymann_git-semver-tag)
[](https://sonarcloud.io/summary/new_code?id=timo-reymann_git-semver-tag)
[](https://sonarcloud.io/summary/new_code?id=timo-reymann_git-semver-tag)
Simple helper to release your git tag according to the semver spec.
## Features
- create git tags easily following semver guidelines
- prefix-aware, will keep your prefix without any further doings
- feels like a direct integration with git
- ability to add custom suffix to your version tag without having to do it all manually
- push the newly created tag to origin
## Installation
### using go ...
```sh
go install github.com/timo-reymann/git-semver-tag@latest
```
### on Linux ...
```bash
curl -LO https://github.com/timo-reymann/git-semver-tag/releases/download/$(curl -Lso /dev/null -w %{url_effective} https://github.com/timo-reymann/git-semver-tag/releases/latest | grep -o '[^/]*$')/git-semver-tag_linux_amd64 && chmod +x git-semver-tag_linux_amd64
sudo mv git-semver-tag_linux_amd64 /usr/local/bin/git-semver-tag
```
### on Mac with homebrew ...
```bash
brew install timo-reymann/homebrew-git-semver-tag/git-semver-tag
```
Note: this creates a tap `timo-reymann/git-semver-tag`:
```bash
brew tap
homebrew/bundle
timo-reymann/git-semver-tag
[...]
```
### on Mac ...
```bash
curl -LO https://github.com/timo-reymann/git-semver-tag/releases/download/$(curl -Lso /dev/null -w %{url_effective} https://github.com/timo-reymann/git-semver-tag/releases/latest | grep -o '[^/]*$')/git-semver-tag_darwin_amd64 && chmod +x git-semver-tag_darwin_amd64
sudo mv git-semver-tag_darwin_amd64 /usr/local/bin/git-semver-tag
```
## Usage
To get usage info enter:
```sh
git semver-tag -h
```
As you may have recognized now semver-tag is registered as git subcommand.
## Motivation
Sometimes semantic-release is just not the right thing to use and having
to figure out the next semantic tag is sometimes to annoying. So here is
a helper to plug in and avoid that
## Contributing
I love your input! I want to make contributing to this project as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the configuration
- Submitting a fix
- Proposing new features
- Becoming a maintainer
To get started please read the [Contribution Guidelines](./CONTRIBUTING.md).
## Development
### Requirements
- [Go](https://go.dev/doc/install)
### Test
```sh
go test ./...
```
### Build
```sh
go build -o git-semver-tag main.go
```