[git] Install hooks automatically at clone and init time