Users Pricing

forum

Home Forums What happens to uncommitted changes when Claude Code switches branches? – MindStick

What happens to uncommitted changes when Claude Code switches branches?

Magdalena Michalska 69 16 Oct 2026

I use Claude Code while working on a feature branch, and sometimes need to switch branches to check a bug elsewhere. I’m unsure how it handles files I’ve edited but haven’t committed yet.

Does anyone have a reliable workflow for switching branches without losing or accidentally carrying over uncommitted changes? I’d especially like to hear what happens when the assistant is in the middle of a task.


0 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md