{"tool":"git","tool_display":"Git","intent":"archive-with-prefix-path","intent_display":"archive with prefix path","title":"Git Command: archive with prefix path","command_string":"git archive -o <path/to/file.tar> --prefix <path/to/prepend>/ HEAD","raw_command_string":"git archive {{[-o|--output]}} {{path/to/file.tar}} --prefix {{path/to/prepend}}/ HEAD","description":"Exact CLI syntax to archive with prefix path using Git.","usage_scenario":"During packaging for distribution where directory structure must be maintained, critical for deployment procedures.","scenario_context":null,"simulated_output":null,"how_to_steps":null,"inferred_category":"Version Control","canonical_url":"https://www.syntaxstandard.com/git/archive-with-prefix-path"}