task - Automatically run Git hook when creating a Git tag -


is there git hook can executed when new git tag added? because want automatically write new git tag names textfile. have clue on how this?

while it's not possible using hooks, can create simple script.

mytag.sh :

#!/bin/sh [ -z "$1" ] || ( git tag $1 && git tag > /path/to/your-tags-file ) 

then :

chmod +x mytag.sh git config alias.mytag !/path/to/mytag.sh 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -