{"tool":"git","tool_display":"Git","intent":"create-and-switch-to-new-branch-based-on-commit","intent_display":"create and switch to new branch based on commit","title":"Git Command: create and switch to new branch based on commit","command_string":"git switch -c <branch_name> <commit>","raw_command_string":"git switch {{[-c|--create]}} {{branch_name}} {{commit}}","description":"Exact CLI syntax to create and switch to new branch based on commit using Git.","usage_scenario":"Validating features or hotfixes from a commit that is not the HEAD.","scenario_context":null,"simulated_output":null,"how_to_steps":null,"inferred_category":"Version Control","canonical_url":"https://www.syntaxstandard.com/git/create-and-switch-to-new-branch-based-on-commit"}