{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "anthropics-claude-code--handle-git-workflows-in-chat",
 "repo": "anthropics/claude-code",
 "repo_url": "https://github.com/anthropics/claude-code",
 "repo_slug": "anthropics-claude-code",
 "title": "Handle git workflows with natural language",
 "page_title": "How to handle git workflows with natural language with Claude Code",
 "summary": "Describe a git task in plain words and let Claude Code carry it out in your project.",
 "who": "A developer who wants help with commit and branch steps but prefers not to look up each git command.",
 "problem": "Git workflows involve many steps, and remembering the exact sequence slows routine work.",
 "outcome": "The developer describes the git outcome they want, Claude Code handles the steps, and the developer checks the resulting repository state.",
 "steps": [
  "Install Claude Code with one of the README install methods, such as `winget install Anthropic.ClaudeCode` on Windows.",
  "Navigate to your project directory and run `claude`.",
  "Describe the git outcome you want in plain language, such as preparing changes for a commit on a new branch.",
  "Check the resulting repository state yourself before pushing anything.",
  "Use the `/bug` command if the workflow does not do what you asked."
 ],
 "agent_prompt": "In the project at <project-path>, run `claude` and ask it to <describe-git-workflow-outcome>. Expected output: the git steps reported back in the session. Verify by checking the repository state in your own git client or terminal before pushing.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The README names git workflow handling as a capability but does not list which git operations are supported, so confirm the result yourself.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "A terminal on macOS, Linux, or Windows",
  "A local project directory you want Claude Code to work in",
  "Permission to run one of the install methods listed in the README"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/anthropics-claude-code/handle-git-workflows-in-chat/",
 "md": "https://dedupedai.com/use-cases/anthropics-claude-code/handle-git-workflows-in-chat/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/anthropics-claude-code--handle-git-workflows-in-chat.json",
 "api_version": "v1"
}
