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
Post a Comment