[git] Reorganize hooks