# README
Taggo
Easy peasy git tag
utility for lazy people who don't want to remember git commands.
Taggo handle the creation of lightweight tags and push them to the remote repository.
Tags are created with the format vX.Y.Z
where X
is the major version, Y
is the minor version and Z
is the patch version.
Future versions will allow to add pre-release and handle annotated tags.
Table of Contents
Installation
Go install command
If you have Go installed, you can use the go install
command to install the binary.
go install github.com/jeorjebot/taggo
The binary will be installed in $GOPATH/bin
or $GOBIN
if set.
Make sure you have $GOPATH/bin
in your path.
From releases
Download the binary for your OS from the releases page. Make sure the binary is executable, then move it to your path.
chmod +x /path/to/taggo
mv /path/to/taggo /usr/local/bin
Usage
taggo
==> show last tagtaggo init
==> create first tag v0.0.0taggo -p
==> create patch tag. Example: v0.0.1taggo -m
==> create minor tag. Example: v0.1.0taggo -M
==> create major tag. Example: v1.0.0taggo -t
==> create tag specifying version. Example: v1.0.0taggo -d
==> delete last tag
Examples
- Show last tag
$ taggo
[*] Current tag: v1.0.0
- Create first tag
$ taggo init
[*] Initializing git repo
[*] Added tag v0.0.0
- Create patch tag
$ taggo -p
[*] Current tag: v0.0.0
[*] New tag: v0.0.1
[*] Tag pushed successfully
- Create a specific tag
$ taggo -t v1.0.0
[*] Current tag: v0.0.1
[*] New tag: v1.0.0
[*] Tag pushed successfully
- Delete last tag
$ taggo -d
[*] Current tag: v0.0.2
[*] Deleting tag v0.0.2
[*] Tag deleted successfully
Git Commands for reference
git tag --sort=committerdate | tail -1
==> last taggit describe --tags --abbrev=0
==> last taggit tag
==> all tagsgit tag v1.0.0
==> create taggit push origin v1.0.0
==> push tag to remotegit tag --delete v1.0.0
==> delete tag localgit push --delete origin v1.0.0
==> delete tag remote
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details
Thanks
- autotag for the inspiration
- gopherize.me for the gopher image