TIL: Use git init to reapply templates to an existing repo

  Wynn Netherland • January 05, 2012

While following Tim Pope’s guide to using git hooks to reindex ctags in Vim, today I learned something that may or may not be obvious to you, the reader:

Once you get this all set up, you can use git init in existing repositories to copy these hooks in.

I’ve long used git init to initialize a folder as a git repo, but it never occurred to me to reinitialize an existing repo with it.