Create a folder to store git hook templates
# ~/.gitconfig
[init]
templatedir = ~/.git_templates
The following files are in ~/.git_templates/hooks/
- ctags
- post-*
# ~/.ctags
--javascript-kinds=cm
--fields=-s
--languages=-html
--exclude=*.min.js
--exclude=jquery.*.js
--exclude=jquery-*.js
--exclude=.git
--exclude=build
--exclude=tmp
--exclude=log
--langdef=coffee
--langmap=coffee:.coffee
--regex-coffee=/^[ \t]*([A-Za-z.]+)[ \t]+=.*->.*$/\1/f,function/
--regex-coffee=/^[ \t]*([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/v,variable/
--langdef=markdown
--langmap=markdown:.markdown
--regex-markdown=/^#[ \t]+(.*)/\. \1/h,heading1/
--regex-markdown=/^##[ \t]+(.*)/\.\. \1/h,heading2/
--regex-markdown=/^###[ \t]+(.*)/\.\.\. \1/h,heading3/