Using Git Bash, you should be able to simply quote it: git grep "<template>"...
.
Running Git via Windows' cmd.exe
is a little bit different. There, git grep ^<template^> ...
should work. This is because cmd.exe
uses ^
as its escape character (rather than \
, which is used in Bash, ZSH, and just about every other shell out there).
See also this question.