Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pierrekieffer/tag
Git utility to create tags in order to identify specific releases
https://github.com/pierrekieffer/tag
bash git release releases tags version-control versioning
Last synced: 2 months ago
JSON representation
Git utility to create tags in order to identify specific releases
- Host: GitHub
- URL: https://github.com/pierrekieffer/tag
- Owner: PierreKieffer
- Created: 2021-07-01T08:25:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-16T16:37:41.000Z (over 3 years ago)
- Last Synced: 2023-03-07T01:31:41.965Z (almost 2 years ago)
- Topics: bash, git, release, releases, tags, version-control, versioning
- Language: Shell
- Homepage:
- Size: 4.96 MB
- Stars: 24
- Watchers: 1
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tag
Git utility to create tags in order to identify specific releases
---
### About
`tag` script sets the version number according to the type of release (major, minor, patch), and previous version numbers.Tag version format : `MAJOR.MINOR.PATCH`.
### Usage
- Add `tag` to PATH, for example :
```
sudo cp tag /usr/local/bin
```- Steps :
```
tag
``````
---------------------------
Create tag
---------------------------Latest tag released : 1.2.1
Select release type :
[ 1 ] major
[ 2 ] minor
[ 3 ] patch
> 1
Release type : major
``````
Create and push tag with version : 2.0.0
Do you want to continue ? [Y/n]
Create tag 2.0.0 ...
Push tag 2.0.0 ...
Total 0 (delta 0), reused 0 (delta 0)
To github.com:PierreKieffer/app.git
* [new tag] 2.0.0 -> 2.0.0
Tag 2.0.0 released
---------------------------
```- Or create a tag directly with release type as argument :
```
tag major || minor || patch
```- If a tag already exists on the current commit :
```
---------------------------
Create tag
---------------------------Latest tag released : 0.2.0
Select release type :
[ 1 ] major
[ 2 ] minor
[ 3 ] patch
> 1
Release type : major
Canceled
A tag already exists on this commit
Associated tag version : 0.2.0---------------------------
```