This function automatically grabs the latest git tag and, based on keyword (
patch), adds a new tag. (e.g.
git_tag patch for
v1.2.0 would create
Drop this into your
~/.bash_profile and run
source ~/.bash_profile to use it.
You can find all of my dotfiles here: https://github.com/drewbarontini/dotfiles
Credit to Jacob Swanner for cleaning up my function :)