[git] Add ~/.gittemplates and pre-auto-gc hook