{"tool":"hg","tool_display":"Hg","intent":"remove-staged-files-matching-pattern","intent_display":"remove staged files matching pattern","title":"Hg Command: remove staged files matching pattern","command_string":"hg remove -I <pattern>","raw_command_string":"hg remove {{[-I|--include]}} {{pattern}}","description":"Exact CLI syntax to remove staged files matching pattern using Hg.","usage_scenario":"Removing unwanted staged files before committing changes.","scenario_context":"Removing unwanted staged files before committing changes.","simulated_output":"removing 'file1.txt'\nremoving 'file2.log'\nremoving 'file3.md'","how_to_steps":["Run `hg remove -I pattern` to specify files to remove.","Confirm the removal by checking the status with `hg status`.","Commit the changes with `hg commit -m 'Removed specific files'`."],"inferred_category":"Version Control","canonical_url":"https://www.syntaxstandard.com/hg/remove-staged-files-matching-pattern"}