{"tool":"git","tool_display":"Git","intent":"search-string-in-files-matching-glob-current-head","intent_display":"search string in files matching glob current head","title":"Git Command: search string in files matching glob current head","command_string":"git grep \"<search_string>\" -- \"<*.ext>\"","raw_command_string":"git grep \"{{search_string}}\" -- \"{{*.ext}}\"","description":"Exact CLI syntax to search string in files matching glob current head using Git.","usage_scenario":"Diagnosing bugs by searching for function usage in specific file types.","scenario_context":"Diagnosing bugs by searching for function usage in specific file types.","simulated_output":"function_name() {\n    // This is a sample function\n}\n\n// Usage of function_name in file.ext","how_to_steps":["Open your terminal and navigate to the repository.","Run the command: git grep \"{{search_string}}\" -- \"{{*.ext}}\".","Review the output for matches in the specified file types."],"inferred_category":"Version Control","canonical_url":"https://www.syntaxstandard.com/git/search-string-in-files-matching-glob-current-head"}