While it is currently not possible to use interceptors, you can always create a 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
source
share