Git Questions – How do I switch branches without losing my work?
We regularly get questions about how to achieve a particular thing – as developers there are parts of our workflow which trip us up, that our tools can help us with if we understand how. So we’ve decided to start answering these real world questions with videos showing what to do.
The first video features me, Trisha Gee (Developer Advocate for IntelliJ IDEA) and Gary Hockin (Developer Advocate for PhpStorm) answering the question “How do I switch branches without losing the code I was working on?”. Through frequent battles with Git I have learnt there’s always more than one way to do things, so in this video we present two different options. We’re also two advocates using two different IDEs, coding in two different languages – many challenges we face as developers aren’t unique to our language or tool.
We’re really interested in what you think of this more informal format – it’s more like a video podcast than a screencast. We’d also love to hear what questions or problems you’d like us to tackle in future videos.