https://github.com/math2001/git-semver-tag
gst - Helps creating semver tags with git
https://github.com/math2001/git-semver-tag
Last synced: 13 days ago
JSON representation
gst - Helps creating semver tags with git
- Host: GitHub
- URL: https://github.com/math2001/git-semver-tag
- Owner: math2001
- License: mit
- Created: 2017-01-23T02:21:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-26T07:42:42.000Z (over 9 years ago)
- Last Synced: 2025-02-24T13:13:44.069Z (over 1 year ago)
- Language: Python
- Homepage: https://math2001.github.io/git-semver-tag
- Size: 78.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git Semver Tag
Help manager [semver](http://semver.org) tagging with git written in Python. It allows you to prefix
your tags with a `v`.
## Usage
```bash
$ gst -M # or --major
$ gst -m # or --minor
$ gst -p # or --patch
```
See `gst --help` for more info.
## Installation
You just need to bind the `git-semver-tag.py` to an alias:
```
gst=python "path\to\git-semver-tag.py" $*
```
### Windows
If you don't know how to create aliases on Windows, here's how:
Write this into a file, say in `C:/Users/you_username/aliases.cmd`.
```bash
doskey gst=python "path\to\git-semver-tag.py" $*
```
Quickly, `doskey` is the command to alias. Then `gst` is the name of the alias. After the `=`, it's
the command that is going to be called. The `$*` allows to give args to the actual command through
the alias.
Then, create a shortcut for `cmd`, on the desktop for example. Right click on it, select
`Properties`, in the `Shortcut` tab, click in the `Target` tab and type:
```bash
cmd /k C:/Users/you_username/aliases.cmd
```
Of course, replace `C:/Users/you_username/aliases.cmd` with the actual path to the alias file.
Click `OK`, and double click on this shortcut. You have now access to the alias `gst`.
### Other platforms
I only have a pc using Windows, so, Google's your best friend if you don't know how to create an
alias.