Search the working directory for foo():
git grep "foo()"
Pro tip: use ```triple backticks around text``` to write in code fences