.git/hooks 配下に以下のようなスクリプトを post-commit というファイル名で作成。実行権限を与える。
.git/hooks/post-commit
#!/bin/sh
/usr/local/bin/ctags -f tags -R `pwd`
echo "*** Update tags by git hook script."
同様の内容で、post-merge, post-checkout という名前でファイルを用意する。
注意
mac の場合 brew install ctags
でインストールすること
参考: Vim - ctagsと連携するように環境を構築する - Qiita